You are here

protected static function CookiesKnockOutService::hasInstance in COOKiES Consent Management 1.0.x

Helper to find out if object has instance.

Return value

bool true if has instance, otherwise false.

File

src/CookiesKnockOutService.php, line 75

Class

CookiesKnockOutService
Class KnockOutService.

Namespace

Drupal\cookies

Code

protected static function hasInstance() {
  $self = get_called_class();
  return isset(self::$instances[$self]);
}