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 = []; $actorTypes = $this->entityTypeManager->getStorage('oc_actor_type')->loadMultiple(); foreach ($actorTypes as $id => $actorType) { $links[$id] = [ 'title' => $actorType->label(), 'route_name' => "entity.oc_actor.add_form", 'route_parameters' => ['oc_actor_type' => $actorType->id()] ] + $base_plugin_definition; } return $links; } }