You are here

public function InstallablePluginBase::getContainer in Markdown 8.2

Retrieves the container.

Return value

\Symfony\Component\DependencyInjection\ContainerInterface The container.

1 call to InstallablePluginBase::getContainer()
InstallablePluginBase::setConfiguration in src/Plugin/Markdown/InstallablePluginBase.php
Sets the configuration for this plugin instance.

File

src/Plugin/Markdown/InstallablePluginBase.php, line 194

Class

InstallablePluginBase
Base class for installable plugins.

Namespace

Drupal\markdown\Plugin\Markdown

Code

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