BaseEventTypeController::getActionType PHP Method

getActionType() public method

Return an ACTION_TYPE_ constant representing the type of an action for authorisation purposes.
public getActionType ( string $action ) : string
$action string
return string
    public function getActionType($action)
    {
        if (!isset($this->action_type_map[strtolower($action)])) {
            throw new Exception("Action '{$action}' has no type associated with it");
        }
        return $this->action_type_map[strtolower($action)];
    }
BaseEventTypeController