protected function EntityReferenceHierarchy::entityTypeStorage 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::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\FieldTypeCode
protected function entityTypeStorage($entity_type_id) {
return \Drupal::entityTypeManager()
->getStorage($entity_type_id);
}