You are here

function filebrowser_node_load in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x filebrowser.module \filebrowser_node_load()

Implements hook_ENTITY_TYPE_load(). @inheritdoc

File

./filebrowser.module, line 162

Code

function filebrowser_node_load($nodes) {

  /** @var \Drupal\node\Entity\Node $node */
  foreach ($nodes as $nid => $node) {
    if ($node
      ->bundle() == 'dir_listing') {
      $node->filebrowser = new Filebrowser($nid);
    }
  }
}