You are here

public function EntityHierarchyHandlerInterface::getAddChildUrl 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::getAddChildUrl()

Gets an add child URL.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entityType: Entity type.

\Drupal\Core\Entity\ContentEntityInterface $parent: Parent entity.

string $bundle: Child bundle.

string $fieldName: Child field name.

Return value

\Drupal\Core\Url Url to add new child.

2 methods override EntityHierarchyHandlerInterface::getAddChildUrl()
EntityHierarchyHandler::getAddChildUrl in src/Handler/EntityHierarchyHandler.php
Gets an add child URL.
NodeEntityHierarchyHandler::getAddChildUrl in src/Handler/NodeEntityHierarchyHandler.php
Gets an add child URL.

File

src/Handler/EntityHierarchyHandlerInterface.php, line 28

Class

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

Namespace

Drupal\entity_hierarchy\Handler

Code

public function getAddChildUrl(EntityTypeInterface $entityType, ContentEntityInterface $parent, $bundle, $fieldName);