Source of file BetterButtonGroupable.php
Size: 0,746 Bytes - Last Modified: 2021-12-23T10:56:01+00:00
/var/www/docs.ssmods.com/process/src/src/Extensions/BetterButtonGroupable.php
12345678910111213141516171819202122232425262728293031323334353637383940 | <?php namespace UncleCheese\BetterButtons\Extensions; use SilverStripe\ORM\DataExtension; /** * Injects the "isGrouped" flag into Actions and Buttons * * @author Uncle Cheese <unclecheese@leftandmain.com> */ class BetterButtonGroupable extends DataExtension { /** * Is the button part of a group, e.g. DropdownFormAction * @var boolean */ protected $isGrouped = false; /** * Getter for the $isGrouped bool * @return boolean */ public function isGrouped() { return $this->isGrouped; } /** * Sets the $isGrouped flag * @param bool $bool */ public function setIsGrouped($bool) { $this->isGrouped = $bool; return $this->owner; } } |