X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Fsrc%2FEntity%2FVocabulary.php;h=2f2833ae3999e02307775053e60f314a4f77d0c7;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=b0d1ac13d28e5ee82366877cd3f7575900cf55ab;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/taxonomy/src/Entity/Vocabulary.php b/web/core/modules/taxonomy/src/Entity/Vocabulary.php index b0d1ac13d..2f2833ae3 100644 --- a/web/core/modules/taxonomy/src/Entity/Vocabulary.php +++ b/web/core/modules/taxonomy/src/Entity/Vocabulary.php @@ -12,13 +12,25 @@ use Drupal\taxonomy\VocabularyInterface; * @ConfigEntityType( * id = "taxonomy_vocabulary", * label = @Translation("Taxonomy vocabulary"), + * label_singular = @Translation("vocabulary"), + * label_plural = @Translation("vocabularies"), + * label_collection = @Translation("Taxonomy"), + * label_count = @PluralTranslation( + * singular = "@count vocabulary", + * plural = "@count vocabularies" + * ), * handlers = { * "storage" = "Drupal\taxonomy\VocabularyStorage", * "list_builder" = "Drupal\taxonomy\VocabularyListBuilder", + * "access" = "Drupal\taxonomy\VocabularyAccessControlHandler", * "form" = { * "default" = "Drupal\taxonomy\VocabularyForm", * "reset" = "Drupal\taxonomy\Form\VocabularyResetForm", - * "delete" = "Drupal\taxonomy\Form\VocabularyDeleteForm" + * "delete" = "Drupal\taxonomy\Form\VocabularyDeleteForm", + * "overview" = "Drupal\taxonomy\Form\OverviewTerms" + * }, + * "route_provider" = { + * "html" = "Drupal\taxonomy\Entity\Routing\VocabularyRouteProvider", * } * }, * admin_permission = "administer taxonomy", @@ -30,7 +42,7 @@ use Drupal\taxonomy\VocabularyInterface; * "weight" = "weight" * }, * links = { - * "add-form" = "/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/add", + * "add-form" = "/admin/structure/taxonomy/add", * "delete-form" = "/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/delete", * "reset-form" = "/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/reset", * "overview-form" = "/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/overview", @@ -75,7 +87,7 @@ class Vocabulary extends ConfigEntityBundleBase implements VocabularyInterface { * Possible values: * - VocabularyInterface::HIERARCHY_DISABLED: No parents. * - VocabularyInterface::HIERARCHY_SINGLE: Single parent. - * - VocabularyInterface::HIERARCHY_MULTIPL: Multiple parents. + * - VocabularyInterface::HIERARCHY_MULTIPLE: Multiple parents. * * @var int */