Drupal::hasContainer

public static Drupal::hasContainer()

Returns TRUE if the container has been initialized, FALSE otherwise.

Return value

bool

File

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

Class

Drupal
Static Service Container wrapper.

Code

1
2
3
public static function hasContainer() {
  return static::$container !== NULL;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.