entityTypeManager = $entity_type_manager; } /**    * {@inheritdoc}    */ public static function create(ContainerInterface $container, $base_plugin_id) { return new static( $base_plugin_id, $container->get('entity_type.manager') ); } /**    * {@inheritdoc}    */ public function getDerivativeDefinitions($base_plugin_definition) { $links = []; $vocabs = $this->entityTypeManager->getStorage('taxonomy_vocabulary')->loadMultiple(); foreach ($vocabs as $id => $vocab) { $links[$id] = [ 'title' => 'Manage ' . $vocab->label(), 'route_name' => "entity.taxonomy_vocabulary.overview_form", 'route_parameters' => ['taxonomy_vocabulary' => $vocab->id()] ] + $base_plugin_definition; } return $links; } }