code: public function actionTasks()
      {
          $tasks = $this->params['tasks'] = $this->getTasks();
          if (isset($_GET['task'])) {
              Yii::$app->response->task = 'message';
              if (isset($tasks[$_GET['task']])) {
                  $tasks[$_GET['task']]['run']();
              } else {
                  Yii::$app->response->content = 'Unknown task!';
                  Yii::$app->response->taskOptions = ['state' => 'danger'];
              }
  
              return;
          }
  
          Yii::$app->response->view = 'tasks';
      }
docs: [[@doctodo method_description:actionTasks]].
  
  @return [[@doctodo return_type:actionTasks]] [[@doctodo return_description:actionTasks]]