You are here

protected function EntityReferenceHierarchy::getNodeKeyFactory in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x 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\FieldType

Code

protected function getNodeKeyFactory() {
  return \Drupal::service('entity_hierarchy.nested_set_node_factory');
}