You are here

interface PathMappingInterface in Gatsby Live Preview & Incremental Builds 8

Same name and namespace in other branches
  1. 2.0.x src/PathMappingInterface.php \Drupal\gatsby\PathMappingInterface

Defines an interface for mapping paths between Drupal and Gatsby.

Hierarchy

Expanded class hierarchy of PathMappingInterface

All classes that implement PathMappingInterface

File

src/PathMappingInterface.php, line 10

Namespace

Drupal\gatsby
View 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

Namesort descending Modifiers Type Description Overrides
PathMappingInterface::getPath public function Gets the Gatsby path for a content-entity. 1