‪TYPO3CMS  10.4
DummyLinkParameterProvider.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
23 {
27  protected ‪$parameters = [];
28 
32  protected ‪$thisScript;
33 
38  public function ‪__construct(array ‪$parameters, ‪$thisScript)
39  {
40  foreach (‪$parameters as $name => $value) {
41  if ($value) {
42  $this->parameters[$name] = $value;
43  }
44  }
45  $this->thisScript = ‪$thisScript;
46  }
47 
53  public function ‪getUrlParameters(array $values)
54  {
55  $this->parameters['expandFolder'] = $values['identifier'];
56  return ‪$this->parameters;
57  }
58 
64  public function ‪isCurrentlySelectedItem(array $values)
65  {
66  return false;
67  }
68 
74  public function ‪getScriptUrl()
75  {
76  return ‪$this->thisScript;
77  }
78 }
‪TYPO3\CMS\Recordlist\Tree\View
Definition: DummyLinkParameterProvider.php:16