Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setUriCallback()
  2. 9 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\Entity

Code

public function setUriCallback($callback);