You are here

private function HierarchyBreadcrumbBuilder::hierarchyGetNodePrimaryAncestorNodes in Entity Reference Hierarchy 8

Get the parent nodes for the given node.

1 call to HierarchyBreadcrumbBuilder::hierarchyGetNodePrimaryAncestorNodes()
HierarchyBreadcrumbBuilder::build in src/HierarchyBreadcrumbBuilder.php
Builds the breadcrumb.

File

src/HierarchyBreadcrumbBuilder.php, line 70
Contains \Drupal\entity_hierarchy\HierarchyBreadcrumbBuilder.

Class

HierarchyBreadcrumbBuilder
Provides a breadcrumb builder for nodes in a book.

Namespace

Drupal\entity_hierarchy

Code

private function hierarchyGetNodePrimaryAncestorNodes($nid) {
  return \Drupal\node\Entity\Node::loadMultiple($this
    ->hierarchyGetNodePrimaryAncestorNids($nid));
}