8.2.x EntityType.php public EntityType::getRouteProviderClasses()
8.0.x EntityType.php public EntityType::getRouteProviderClasses()
8.1.x EntityType.php public EntityType::getRouteProviderClasses()
8.3.x EntityType.php public EntityType::getRouteProviderClasses()

Gets all the route provide handlers.

Much like forms you can define multiple route provider handlers.

Return value

string[]

Overrides EntityTypeInterface::getRouteProviderClasses

File

core/lib/Drupal/Core/Entity/EntityType.php, line 574

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getRouteProviderClasses() {
  return !empty($this->handlers['route_provider']) ? $this->handlers['route_provider'] : [];
}