function EntityTypeInterface::getUriCallback
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getUriCallback()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getUriCallback()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::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.
1 method overrides EntityTypeInterface::getUriCallback()
- EntityType::getUriCallback in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Gets a callable that can be used to provide the entity URI.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 673
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getUriCallback();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.