yii\base\Action::getUniqueId PHP Метод

getUniqueId() публичный Метод

Returns the unique ID of this action among the whole application.
public getUniqueId ( ) : string
Результат string the unique ID of this action among the whole application.
    public function getUniqueId()
    {
        return $this->controller->getUniqueId() . '/' . $this->id;
    }

Usage Example

Пример #1
0
 /**
  * Returns a value indicating whether the filer is active for the given action.
  * @param \yii\base\Action $action the action being filtered
  * @return boolean whether the filer is active for the given action.
  */
 protected function isActive($action)
 {
     if ($action->getUniqueId() === Yii::$app->getErrorHandler()->errorAction) {
         return false;
     }
     return parent::isActive($action);
 }
All Usage Examples Of yii\base\Action::getUniqueId