public function getIdentificator() { return Action::createIdentificator([$this->getModuleName(), $this->getName()]); }
/** * @param InlineAction $action * @return string Identificator of permission */ public static function getPermissionNameViaAction(\yii\base\Action $action) { return Action::createIdentificator([$action->controller->module->id, array_pop(explode('\\', $action->controller->className())), str_replace('action', '', $action->id)]); }