getAliasesForAction() public method

Returns all actions a given action applies to
public getAliasesForAction ( $action ) : array
return array
 public function getAliasesForAction($action)
 {
     $action = (array) $action;
     $results = [];
     foreach ($this->getAliasedActions() as $aliasedAction => $actions) {
         if (array_intersect($action, $actions)) {
             $results = array_merge($results, parent::getAliasesForAction($aliasedAction));
         }
     }
     return array_unique($results);
 }