src/Charcoal/Admin/Ui/SecondaryMenu/SecondaryMenuGroupTrait.php
public function isSelected($flag = null)
    {
        if ($flag !== null) {
            $this->isSelected = !!$flag;

            $this->setCollapsed(!$flag);
        }

        return $this->isSelected;
    }
public function isSelected($flag = null)
    {
        if ($flag !== null) {
            $this->isSelected = !!$flag;

            $this->setCollapsed(!$flag);
        }

        return $this->isSelected;
    }
public function isSelected ( $ flag = null ) { if ( $ flag !== null ) { $ this -> isSelected = ! ! $ flag ; $ this -> setCollapsed ( ! $ flag ) ; } return $ this -> isSelected ; }
Set whether the item is selected or not.

@param  boolean|null $flag Whether the item is selected or not.
@return boolean
Set whether the item is selected or not .