/**
  * @inheritdoc
  */
 public function actions()
 {
     $actions = parent::actions();
     $actions['index']['prepareDataProvider'] = [$this, 'prepareListDataProvider'];
     $actions['edit'] = ['class' => Postman\backend\controllers\rest\MessageController\EditFormAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['detail'] = ['class' => Postman\backend\controllers\rest\MessageController\DetailAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['resent'] = ['class' => Postman\backend\controllers\rest\MessageController\ResentAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['delete'] = ['class' => \cookyii\rest\actions\DeleteAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['restore'] = ['class' => \cookyii\rest\actions\RestoreAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     return $actions;
 }
 /**
  * @inheritdoc
  */
 public function actions()
 {
     $actions = parent::actions();
     $actions['edit'] = ['class' => Feed\backend\controllers\section\rest\SectionController\EditFormAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['tree'] = ['class' => Feed\backend\controllers\section\rest\SectionController\TreeAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['detail'] = ['class' => Feed\backend\controllers\section\rest\SectionController\DetailAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['activate'] = ['class' => \cookyii\rest\actions\ActivateAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['deactivate'] = ['class' => \cookyii\rest\actions\DeactivateAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['delete'] = ['class' => \cookyii\rest\actions\DeleteAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['restore'] = ['class' => \cookyii\rest\actions\RestoreAction::class, 'modelClass' => $this->modelClass, 'checkAccess' => [$this, 'checkAccess']];
     $actions['index']['prepareDataProvider'] = [$this, 'prepareListDataProvider'];
     $actions['delete']['findModel'] = [$this, 'findModel'];
     $actions['restore']['findModel'] = [$this, 'findModel'];
     return $actions;
 }
 /**
  * @inheritdoc
  */
 protected function serializeData($data)
 {
     return parent::serializeData($data);
 }