‪TYPO3CMS  9.5
DummyLinkParameterProvider.php
Go to the documentation of this file.
1 <?php
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 
22 {
26  protected ‪$parameters = [];
27 
31  protected ‪$thisScript;
32 
37  public function ‪__construct(array ‪$parameters, ‪$thisScript)
38  {
39  foreach (‪$parameters as $name => $value) {
40  if ($value) {
41  $this->parameters[$name] = $value;
42  }
43  }
44  $this->thisScript = ‪$thisScript;
45  }
46 
52  public function ‪getUrlParameters(array $values)
53  {
54  $this->parameters['expandFolder'] = $values['identifier'];
55  return ‪$this->parameters;
56  }
57 
63  public function ‪isCurrentlySelectedItem(array $values)
64  {
65  return false;
66  }
67 
73  public function ‪getScriptUrl()
74  {
75  return ‪$this->thisScript;
76  }
77 }
‪TYPO3\CMS\Recordlist\Tree\View
Definition: DummyLinkParameterProvider.php:2