function ZfExtensionManagerSfContainer::has

File

core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php, line 87

Class

ZfExtensionManagerSfContainer
Defines a bridge between the Laminas service manager to Symfony container.

Namespace

Drupal\Component\Bridge

Code

public function has($extension) {
  if ($this->standalone && $this->standalone
    ->has($extension)) {
    return TRUE;
  }
  return $this->container
    ->has($this->prefix . $this->canonicalizeName($extension));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.