function VocabularyForm::create

Same name in other branches
  1. 8.9.x core/modules/taxonomy/src/VocabularyForm.php \Drupal\taxonomy\VocabularyForm::create()
  2. 10 core/modules/taxonomy/src/VocabularyForm.php \Drupal\taxonomy\VocabularyForm::create()
  3. 11.x core/modules/taxonomy/src/VocabularyForm.php \Drupal\taxonomy\VocabularyForm::create()

Overrides FormBase::create

File

core/modules/taxonomy/src/VocabularyForm.php, line 39

Class

VocabularyForm
Base form for vocabulary edit forms.

Namespace

Drupal\taxonomy

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity_type.manager')
        ->getStorage('taxonomy_vocabulary'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.