[TASK] Move classAliasMaps into compatibility6 extension part 6
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / ElementBrowser / ElementBrowserHookInterface.php
1 <?php
2 namespace TYPO3\CMS\Core\ElementBrowser;
3
4 /**
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * Interface for classes which hook into \TYPO3\CMS\Recordlist\Browser\ElementBrowser
19 *
20 * @author Ingo Renner <ingo@typo3.org>
21 */
22 interface ElementBrowserHookInterface {
23
24 /**
25 * Initializes the hook object
26 *
27 * @param \TYPO3\CMS\Recordlist\Browser\ElementBrowser Parent \TYPO3\CMS\Recordlist\Browser\ElementBrowser object
28 * @param array Additional parameters
29 * @return void
30 */
31 public function init($parentObject, $additionalParameters);
32
33 /**
34 * Adds new items to the currently allowed ones and returns them
35 *
36 * @param array Currently allowed items
37 * @return array Currently allowed items plus added items
38 */
39 public function addAllowedItems($currentlyAllowedItems);
40
41 /**
42 * Modifies the menu definition and returns it
43 *
44 * @param array Menu definition
45 * @return array Modified menu definition
46 */
47 public function modifyMenuDefinition($menuDefinition);
48
49 /**
50 * Returns a new tab for the browse links wizard
51 *
52 * @param string Current link selector action
53 * @return string A tab for the selected link action
54 */
55 public function getTab($linkSelectorAction);
56
57 /**
58 * Checks the current URL and determines what to do
59 *
60 * @param string $href
61 * @param string $siteUrl
62 * @param array $info
63 * @return array
64 */
65 public function parseCurrentUrl($href, $siteUrl, $info);
66
67 }