private function isErrorPage(Action $action): bool
    {
        if ($action->getUniqueId() === Yii::$app->getErrorHandler()->errorAction) {
            return true;
        }

        return false;
    }
private function isErrorPage(Action $action): bool
    {
        if ($action->getUniqueId() === Yii::$app->getErrorHandler()->errorAction) {
            return true;
        }

        return false;
    }
private function isErrorPage ( Action $ action ) : bool { if ( $ action -> getUniqueId ( ) === Yii :: $ app -> getErrorHandler ( ) -> errorAction ) { return true ; } return false ; }
Returns a value indicating whether a current url equals `errorAction` property of the ErrorHandler component

@param Action $action

@return bool
Returns a value indicating whether a current url equals errorAction property of the ErrorHandler component