Merge pull request #16901 from eileenmcnaughton/settings
[civicrm-core.git] / CRM / Utils / Hook / Drupal8.php
CommitLineData
d3e88312
EM
1<?php
2/*
3 +--------------------------------------------------------------------+
bc77d7c0 4 | Copyright CiviCRM LLC. All rights reserved. |
d3e88312 5 | |
bc77d7c0
TO
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 |
d3e88312 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
d3e88312
EM
11
12/**
13 *
14 * @package CiviCRM_Hook
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
d3e88312
EM
16 */
17class CRM_Utils_Hook_Drupal8 extends CRM_Utils_Hook_DrupalBase {
18
3f57d516
WL
19 /**
20 * {@inheritdoc}
21 */
22 protected function getDrupalModules() {
c6cdd765 23 if (class_exists('\Drupal') && \Drupal::hasContainer()) {
3f57d516
WL
24 return array_keys(\Drupal::moduleHandler()->getModuleList());
25 }
26 }
27
ef10e0b5 28}