You are here

public function PurgerFormController::addForm in Purge 8.3

Render the purger add form.

Return value

array The render array.

1 string reference to 'PurgerFormController::addForm'
purge_ui.routing.yml in modules/purge_ui/purge_ui.routing.yml
modules/purge_ui/purge_ui.routing.yml

File

modules/purge_ui/src/Controller/PurgerFormController.php, line 45

Class

PurgerFormController
Controller for purger configuration forms.

Namespace

Drupal\purge_ui\Controller

Code

public function addForm() {
  if (count($this->purgePurgers
    ->getPluginsAvailable())) {
    return $this
      ->formBuilder()
      ->getForm("Drupal\\purge_ui\\Form\\PurgerAddForm");
  }
  throw new NotFoundHttpException();
}