public function OrganigramsController::addForm in Organigrams 8.2
Same name and namespace in other branches
- 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'
File
- src/
Controller/ OrganigramsController.php, line 47
Class
- OrganigramsController
- Provides route responses for organigrams.module.
Namespace
Drupal\organigrams\ControllerCode
public function addForm() {
$term = $this
->entityTypeManager()
->getStorage('taxonomy_vocabulary')
->create();
return $this
->entityFormBuilder()
->getForm($term);
}