You are here

public function OrganigramsController::addForm in Organigrams 8.2

Same name and namespace in other branches
  1. 8 src/Controller/OrganigramsController.php \Drupal\organigrams\Controller\OrganigramsController::addForm()

Returns a form to add a new vocabulary.

Return value

array The vocabulary add form.

1 string reference to 'OrganigramsController::addForm'
organigrams.routing.yml in ./organigrams.routing.yml
organigrams.routing.yml

File

src/Controller/OrganigramsController.php, line 47

Class

OrganigramsController
Provides route responses for organigrams.module.

Namespace

Drupal\organigrams\Controller

Code

public function addForm() {
  $term = $this
    ->entityTypeManager()
    ->getStorage('taxonomy_vocabulary')
    ->create();
  return $this
    ->entityFormBuilder()
    ->getForm($term);
}