protected function EntityReferenceHierarchy::getNodeKeyFactory in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldType/EntityReferenceHierarchy.php \Drupal\entity_hierarchy\Plugin\Field\FieldType\EntityReferenceHierarchy::getNodeKeyFactory()
Returns the node factory.
Return value
\Drupal\entity_hierarchy\Storage\NestedSetNodeKeyFactory The factory.
1 call to EntityReferenceHierarchy::getNodeKeyFactory()
- EntityReferenceHierarchy::postSave in src/
Plugin/ Field/ FieldType/ EntityReferenceHierarchy.php - Defines custom post-save behavior for field values.
File
- src/
Plugin/ Field/ FieldType/ EntityReferenceHierarchy.php, line 210
Class
- EntityReferenceHierarchy
- Plugin implementation of the 'entity_reference_hierarchy' field type.
Namespace
Drupal\entity_hierarchy\Plugin\Field\FieldTypeCode
protected function getNodeKeyFactory() {
return \Drupal::service('entity_hierarchy.nested_set_node_factory');
}