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

public static function hasContainer() {
  return static::$container !== NULL;
}
doc_Drupal
2016-10-29 09:02:46
Comments
Leave a Comment

Please login to continue.