/** * {@inheritdoc} */ public function getRoutes(EntityTypeInterface $entity_type) { $collection = parent::getRoutes($entity_type); $entity_type_id = $entity_type->id(); if ($collection_route = $this->getCollectionRoute($entity_type)) { $collection->add("entity.{$entity_type_id}.collection", $collection_route); } if ($add_form_route = $this->getAddFormRoute($entity_type)) { $collection->add("entity.{$entity_type_id}.add_form", $add_form_route); } return $collection; }
/** * {@inheritdoc} */ protected function getEditFormRoute(EntityTypeInterface $entity_type) { $route = parent::getEditFormRoute($entity_type); $route->setDefault('_title', 'Configure'); return $route; }