Efficiently\AuthorityController\Authority::getExpandActions PHP Method

getExpandActions() public method

rely on the actions to be expanded.
public getExpandActions ( $actions )
    public function getExpandActions($actions)
    {
        $actions = (array) $actions;
        return array_flatten(array_map(function ($action) use($actions) {
            return array_key_exists($action, $this->getAliasedActions()) ? [$action, $this->getExpandActions($this->getAliasedActions()[$action])] : $action;
        }, $actions));
    }