interface PathMappingInterface in Gatsby Live Preview & Incremental Builds 8
Same name and namespace in other branches
- 2.0.x src/PathMappingInterface.php \Drupal\gatsby\PathMappingInterface
Defines an interface for mapping paths between Drupal and Gatsby.
Hierarchy
- interface \Drupal\gatsby\PathMappingInterface
Expanded class hierarchy of PathMappingInterface
All classes that implement PathMappingInterface
File
- src/
PathMappingInterface.php, line 10
Namespace
Drupal\gatsbyView source
interface PathMappingInterface {
/**
* Gets the Gatsby path for a content-entity.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity to get the Gatsby path for.
*
* @return string
* The Gatsby path for the entity.
*/
public function getPath(EntityInterface $entity) : string;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PathMappingInterface:: |
public | function | Gets the Gatsby path for a content-entity. | 1 |