You are here

function template_preprocess_entity_hierarchy_new_child_links in Entity Reference Hierarchy 8

Prepares variables for hierarchy links to be added to pages.

Default template: entity_hierarchy-new-child-links.html.twig.

Parameters

array $variables:

Todo: define variables

File

./entity_hierarchy.module, line 325
A module to make nodes hierarchical.

Code

function template_preprocess_entity_hierarchy_new_child_links(&$variables) {
  $node = \Drupal::request()->attributes
    ->get('node');

  //  dpm($node);
  //  dpm($variables);
}