public function EntityHierarchySelectionDeriver::__construct in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Derivative/EntityHierarchySelectionDeriver.php \Drupal\entity_hierarchy\Plugin\Derivative\EntityHierarchySelectionDeriver::__construct()
Creates an EntityHierarchySelectionDeriverobject.
Parameters
\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: Entity field manager.
File
- src/
Plugin/ Derivative/ EntityHierarchySelectionDeriver.php, line 28
Class
- EntityHierarchySelectionDeriver
- Derives an entity reference selection handler for each entity type.
Namespace
Drupal\entity_hierarchy\Plugin\DerivativeCode
public function __construct(EntityFieldManagerInterface $entityFieldManager) {
$this->entityFieldManager = $entityFieldManager;
}