isOptional() protected method (available since version 2.0.7)
Checks, whether authentication is optional for the given action.
See also $optional.
protected boolean isOptional ( $action ) | ||
---|---|---|
$action | yii\base\Action |
Action to be checked. |
return | boolean |
Whether authentication is optional or not. |
Please login to continue.