EntityType::getUriCallback

public EntityType::getUriCallback()

Gets a callable that can be used to provide the entity URI.

This is only called if there is no matching link template for the link relationship type, and there is no bundle-specific callback provided.

Return value

callable|null A valid callback that is passed the entity or NULL if none is specified.

Overrides EntityTypeInterface::getUriCallback

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function getUriCallback() {
  return $this->uri_callback;
}
doc_Drupal
2016-10-29 09:08:03
Comments
Leave a Comment

Please login to continue.