} /**
* {@inheritdoc}
*/
public function getRoutes(EntityTypeInterface
$entity_type) { $collection =
new RouteCollection();
$entity_type_id =
$entity_type->
id();
if ($entity_permissions_route =
$this->
getEntityPermissionsRoute($entity_type)) { $collection->
add("entity.
$entity_type_id.entity_permissions_form",
$entity_permissions_route);
} return $collection;
} /**
* Gets the entity permissions route.
*
* Built only for entity types that are bundles of other entity types and
* define the 'entity-permissions-form' link template.
*
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* The entity type.
*
* @return \Symfony\Component\Routing\Route|null
* The generated route, if available.
*/