You are here

public function InstallablePluginManager::getContainer in Markdown 8.2

Retrieves the container.

Return value

\Symfony\Component\DependencyInjection\ContainerInterface The container.

1 call to InstallablePluginManager::getContainer()
InstallablePluginManager::createInstance in src/PluginManager/InstallablePluginManager.php
Creates a pre-configured instance of a plugin.

File

src/PluginManager/InstallablePluginManager.php, line 316

Class

InstallablePluginManager
Installable Plugin Manager.

Namespace

Drupal\markdown\PluginManager

Code

public function getContainer() {
  return $this->container instanceof ContainerInterface ? $this->container : \Drupal::getContainer();
}