public function PathMappingInterface::getPath in Gatsby Live Preview & Incremental Builds 2.0.x
Same name and namespace in other branches
- 8 src/PathMappingInterface.php \Drupal\gatsby\PathMappingInterface::getPath()
Gets the Gatsby path for a content-entity.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to get the Gatsby path for.
Return value
string The Gatsby path for the entity.
1 method overrides PathMappingInterface::getPath()
- PathMapping::getPath in src/
PathMapping.php - Gets the Gatsby path for a content-entity.
File
- src/
PathMappingInterface.php, line 21
Class
- PathMappingInterface
- Defines an interface for mapping paths between Drupal and Gatsby.
Namespace
Drupal\gatsbyCode
public function getPath(EntityInterface $entity) : string;