public function EntityHierarchyHandlerInterface::getAddChildUrl in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x 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\HandlerCode
public function getAddChildUrl(EntityTypeInterface $entityType, ContentEntityInterface $parent, $bundle, $fieldName);