function DrupalKernel::getModulesParameter

Returns an array of Extension class parameters for all enabled modules.

Return value

array An associated array of module class parameters, keyed by module name, for all enabled modules.

Deprecated

in drupal:11.3.0 and is removed from drupal:12.0.0. Use getExtensionsParameter() instead.

See also

https://www.drupal.org/node/3551652

File

core/lib/Drupal/Core/DrupalKernel.php, line 1622

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

protected function getModulesParameter() {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use getExtensionsParameter() instead. See https://www.drupal.org/node/3551652', E_USER_DEPRECATED);
  return $this->getExtensionsParameter($this->moduleList, [
    $this,
    'moduleData',
  ]);
}

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