3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
14 * @package CiviCRM_Hook
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 class CRM_Utils_Hook_Drupal8
extends CRM_Utils_Hook_DrupalBase
{
22 protected function getDrupalModules() {
23 if (class_exists('\Drupal') && \Drupal
::hasContainer()) {
24 return array_keys(\Drupal
::moduleHandler()->getModuleList());