EntityType::getRouteProviderClasses

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'] : [];
}
doc_Drupal
2016-10-29 09:08:03
Comments
Leave a Comment

Please login to continue.