src/Charcoal/Admin/Widget/SecondaryMenuWidget.php
public function secondaryMenuActions()
    {
        if ($this->secondaryMenuActions === null) {
            $ident    = $this->ident();
            $metadata = $this->adminSecondaryMenu();
            if (isset($metadata[$ident]['actions'])) {
                $actions = $metadata[$ident]['actions'];
            } else {
                $actions = [];
            }
            $this->setSecondaryMenuActions($actions);
        }

        if ($this->parsedSecondaryMenuActions === false) {
            $this->parsedSecondaryMenuActions = true;
            $this->secondaryMenuActions = $this->createSecondaryMenuActions($this->secondaryMenuActions);
        }

        return $this->secondaryMenuActions;
    }
public function secondaryMenuActions()
    {
        if ($this->secondaryMenuActions === null) {
            $ident    = $this->ident();
            $metadata = $this->adminSecondaryMenu();
            if (isset($metadata[$ident]['actions'])) {
                $actions = $metadata[$ident]['actions'];
            } else {
                $actions = [];
            }
            $this->setSecondaryMenuActions($actions);
        }

        if ($this->parsedSecondaryMenuActions === false) {
            $this->parsedSecondaryMenuActions = true;
            $this->secondaryMenuActions = $this->createSecondaryMenuActions($this->secondaryMenuActions);
        }

        return $this->secondaryMenuActions;
    }
public function secondaryMenuActions ( ) { if ( $ this -> secondaryMenuActions === null ) { $ ident = $ this -> ident ( ) ; $ metadata = $ this -> adminSecondaryMenu ( ) ; if ( isset ( $ metadata [ $ ident ] [ 'actions' ] ) ) { $ actions = $ metadata [ $ ident ] [ 'actions' ] ; } else { $ actions = [ ] ; } $ this -> setSecondaryMenuActions ( $ actions ) ; } if ( $ this -> parsedSecondaryMenuActions === false ) { $ this -> parsedSecondaryMenuActions = true ; $ this -> secondaryMenuActions = $ this -> createSecondaryMenuActions ( $ this -> secondaryMenuActions ) ; } return $ this -> secondaryMenuActions ; }
Retrieve the secondary menu's actions.

@return array
Retrieve the secondary menu s actions .