You are here

public function ZfExtensionManagerSfContainer::get in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php \Drupal\Component\Bridge\ZfExtensionManagerSfContainer::get()

Retrieve the extension

Parameters

string $extension:

Return value

mixed

Overrides ExtensionManagerInterface::get

File

core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php, line 68
Contains \Drupal\Component\Bridge\ZfExtensionManagerSfContainer.

Class

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

Namespace

Drupal\Component\Bridge

Code

public function get($extension) {
  return $this->container
    ->get($this->prefix . $this
    ->canonicalizeName($extension));
}