You are here

interface EntityHierarchyHandlerInterface in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 src/Handler/EntityHierarchyHandlerInterface.php \Drupal\entity_hierarchy\Handler\EntityHierarchyHandlerInterface

Defines a class for provide entity-type specific entity hierarchy logic.

Hierarchy

Expanded class hierarchy of EntityHierarchyHandlerInterface

All classes that implement EntityHierarchyHandlerInterface

File

src/Handler/EntityHierarchyHandlerInterface.php, line 11

Namespace

Drupal\entity_hierarchy\Handler
View source
interface EntityHierarchyHandlerInterface {

  /**
   * Gets an add child URL.
   *
   * @param \Drupal\Core\Entity\EntityTypeInterface $entityType
   *   Entity type.
   * @param \Drupal\Core\Entity\ContentEntityInterface $parent
   *   Parent entity.
   * @param string $bundle
   *   Child bundle.
   * @param string $fieldName
   *   Child field name.
   *
   * @return \Drupal\Core\Url
   *   Url to add new child.
   */
  public function getAddChildUrl(EntityTypeInterface $entityType, ContentEntityInterface $parent, $bundle, $fieldName);

}

Members