You are here

protected function CKEditorPluginBase::getModuleList in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/ckeditor/src/CKEditorPluginBase.php \Drupal\ckeditor\CKEditorPluginBase::getModuleList()

Gets the module list service.

Return value

\Drupal\Core\Extension\ModuleExtensionList The module extension list service.

File

core/modules/ckeditor/src/CKEditorPluginBase.php, line 47

Class

CKEditorPluginBase
Defines a base CKEditor plugin implementation.

Namespace

Drupal\ckeditor

Code

protected function getModuleList() : ModuleExtensionList {
  if (!$this->moduleList) {
    $this->moduleList = \Drupal::service('extension.list.module');
  }
  return $this->moduleList;
}