Returns the path of the entity view page.
Parameters
\Drupal\Core\Entity\EntityInterface $entity:
The entity to the path should refer to.
Return value
string
The entity view path.
File
- drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationControllerInterface.php, line 112
- Definition of Drupal\translation_entity\EntityTranslationControllerInterface.
Class
- EntityTranslationControllerInterface
- Interface for providing entity translation.
Namespace
Drupal\translation_entity
Code
public function getViewPath(EntityInterface $entity);