function 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;
}

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