function EntityTypeInterface::setUriCallback
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setUriCallback()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setUriCallback()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setUriCallback()
Sets a callable to use to provide the entity URI.
Parameters
callable $callback: A callback to use to provide a URI for the entity.
Return value
$this
1 method overrides EntityTypeInterface::setUriCallback()
- EntityType::setUriCallback in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Sets a callable to use to provide the entity URI.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 675
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function setUriCallback($callback);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.