moduleHandler) { $this->moduleHandler = \Drupal::moduleHandler(); } return $this->moduleHandler; } /** * Sets the module handler for this handler. * * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. * * @return $this */ public function setModuleHandler(ModuleHandlerInterface $module_handler) { $this->moduleHandler = $module_handler; return $this; } }