You are here

protected function EntityReferenceHierarchy::entityTypeStorage 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::entityTypeStorage()

Returns the storage handler for the given entity-type.

Return value

\Drupal\Core\Entity\EntityStorageInterface Storage handler.

1 call to EntityReferenceHierarchy::entityTypeStorage()
EntityReferenceHierarchy::loadSiblingEntityWeights in src/Plugin/Field/FieldType/EntityReferenceHierarchy.php
Loads other children of the given parent.

File

src/Plugin/Field/FieldType/EntityReferenceHierarchy.php, line 189

Class

EntityReferenceHierarchy
Plugin implementation of the 'entity_reference_hierarchy' field type.

Namespace

Drupal\entity_hierarchy\Plugin\Field\FieldType

Code

protected function entityTypeStorage($entity_type_id) {
  return \Drupal::entityTypeManager()
    ->getStorage($entity_type_id);
}