You are here

function bibcite_entity_modules_installed in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/bibcite_entity.module \bibcite_entity_modules_installed()

Implements hook_modules_installed().

Clear bundles cache after module is installed. For some reason bundles does not cached after module installation.

@todo Find what is caused this issue

File

modules/bibcite_entity/bibcite_entity.module, line 490
Module hooks.

Code

function bibcite_entity_modules_installed($modules) {
  if (in_array('bibcite_entity', $modules)) {
    \Drupal::service('entity_type.bundle.info')
      ->clearCachedBundles();
  }
}