public function getDefaultActions()
    {
        /** @var ActiveController $owner */
        $owner = $this->owner;

        $defaultActions = $owner->actions();
        // set default indexes to avoid many isset() calls later
        $actions = [
            'index' => false,
            'view' => false,
            'print' => false,
            'update' => false,
            'delete' => false,
            'toggle' => false,
            'history' => false,
            'help' => false,
            'state' => false,
        ];
        $availableActions = array_merge($actions, $defaultActions);
        foreach ($availableActions as $action => $enabled) {
            $availableActions[$action] = $enabled && in_array($action, $this->buttons);
        }
        return $availableActions;
    }
public function getDefaultActions()
    {
        /** @var ActiveController $owner */
        $owner = $this->owner;

        $defaultActions = $owner->actions();
        // set default indexes to avoid many isset() calls later
        $actions = [
            'index' => false,
            'view' => false,
            'print' => false,
            'update' => false,
            'delete' => false,
            'toggle' => false,
            'history' => false,
            'help' => false,
            'state' => false,
        ];
        $availableActions = array_merge($actions, $defaultActions);
        foreach ($availableActions as $action => $enabled) {
            $availableActions[$action] = $enabled && in_array($action, $this->buttons);
        }
        return $availableActions;
    }
public function getDefaultActions ( ) { /** @var ActiveController $owner */ $ owner = $ this -> owner ; $ defaultActions = $ owner -> actions ( ) ; // set default indexes to avoid many isset() calls later $ actions = [ 'index' => false , 'view' => false , 'print' => false , 'update' => false , 'delete' => false , 'toggle' => false , 'history' => false , 'help' => false , 'state' => false , ] ; $ availableActions = array_merge ( $ actions , $ defaultActions ) ; foreach ( $ availableActions as $ action => $ enabled ) { $ availableActions [ $ action ] = $ enabled && in_array ( $ action , $ this -> buttons ) ; } return $ availableActions ; }
Array of common actions. Disabled ones are returned as boolean false.
@return array
Array of common actions . Disabled ones are returned as boolean false .