function NodeHooks1::modulesInstalled

Implements hook_modules_installed().

Attributes

#[Hook('modules_installed')]

File

core/modules/node/src/Hook/NodeHooks1.php, line 478

Class

NodeHooks1
Hook implementations for node.

Namespace

Drupal\node\Hook

Code

public function modulesInstalled(array $modules) : void {
  // Check if any of the newly enabled modules require the node_access table
  // to be rebuilt.
  if (!node_access_needs_rebuild() && \Drupal::moduleHandler()->hasImplementations('node_grants', $modules)) {
    node_access_needs_rebuild(TRUE);
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.