src/Lock.php
protected function getAliasesForAction($action)
    {
        $actions = [];

        foreach ($this->manager->getAliases() as $aliasName => $alias) {
            if ($alias->hasAction($action)) {
                $actions[] = $aliasName;
            }
        }

        return $actions;
    }
protected function getAliasesForAction($action)
    {
        $actions = [];

        foreach ($this->manager->getAliases() as $aliasName => $alias) {
            if ($alias->hasAction($action)) {
                $actions[] = $aliasName;
            }
        }

        return $actions;
    }
protected function getAliasesForAction ( $ action ) { $ actions = [ ] ; foreach ( $ this -> manager -> getAliases ( ) as $ aliasName => $ alias ) { if ( $ alias -> hasAction ( $ action ) ) { $ actions [ ] = $ aliasName ; } } return $ actions ; }
Returns all aliases which contain the given action

@param string $action
@return array
Returns all aliases which contain the given action