Drupal::moduleHandler

public static Drupal::moduleHandler()

Returns the module handler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface

File

core/lib/Drupal.php, line 470
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

1
2
3
public static function moduleHandler() {
  return static::getContainer()->get('module_handler');
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.