‪TYPO3CMS  ‪main
DropDownDivider.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 
26 class ‪DropDownDivider implements ‪DropDownItemInterface, \Stringable
27 {
28  public function ‪getType(): string
29  {
30  return static::class;
31  }
32 
33  public function ‪isValid(): bool
34  {
35  return true;
36  }
37 
38  public function ‪render(): string
39  {
40  return '<hr class="dropdown-divider">';
41  }
42 
43  public function ‪__toString(): string
44  {
45  return $this->‪render();
46  }
47 }
‪TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownDivider\__toString
‪__toString()
Definition: DropDownDivider.php:43
‪TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownDivider\render
‪render()
Definition: DropDownDivider.php:38
‪TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownDivider\getType
‪getType()
Definition: DropDownDivider.php:28
‪TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownDivider
Definition: DropDownDivider.php:27
‪TYPO3\CMS\Backend\Template\Components\Buttons\DropDown
Definition: AbstractDropDownItem.php:16
‪TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownItemInterface
Definition: DropDownItemInterface.php:19
‪TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownDivider\isValid
‪isValid()
Definition: DropDownDivider.php:33