You are here

public function HierarchyOutlineStorage::hierarchyRecordLoad in Entity Reference Hierarchy 8

Save a entity_hierarchy record.

Overrides HierarchyOutlineStorageInterface::hierarchyRecordLoad

File

src/HierarchyOutlineStorage.php, line 111
Definition of Drupal\entity_hierarchy\HierarchyOutlineStorage.

Class

HierarchyOutlineStorage
Defines a storage class for hierarchies outline.

Namespace

Drupal\entity_hierarchy

Code

public function hierarchyRecordLoad($hid) {
  $result = db_select('entity_hierarchy', 'nh')
    ->fields('nh')
    ->where('hid = :hid', array(
    ':hid' => $hid,
  ))
    ->execute();
  return $result
    ->fetch();
}