function filebrowser_node_load in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 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);
}
}
}