yii\rest\ActiveController::actions PHP Method

actions() public method

public actions ( )
    public function actions()
    {
        return ['index' => ['class' => 'yii\\rest\\IndexAction', 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']], 'view' => ['class' => 'yii\\rest\\ViewAction', 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']], 'create' => ['class' => 'yii\\rest\\CreateAction', 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess'], 'scenario' => $this->createScenario], 'update' => ['class' => 'yii\\rest\\UpdateAction', 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess'], 'scenario' => $this->updateScenario], 'delete' => ['class' => 'yii\\rest\\DeleteAction', 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']], 'options' => ['class' => 'yii\\rest\\OptionsAction']];
    }

Usage Example

 public function actions()
 {
     $actions = parent::actions();
     // disable the "delete" and "create" actions
     unset($actions['delete'], $actions['create']);
     return $actions;
 }
All Usage Examples Of yii\rest\ActiveController::actions