You are here

public function MetatagViewsCachePluginManager::createInstance in Metatag 8

Creates a pre-configured instance of a plugin.

Parameters

string $plugin_id: The ID of the plugin being instantiated.

array $configuration: An array of configuration relevant to the plugin instance.

Return value

object A fully configured plugin instance.

Throws

\Drupal\Component\Plugin\Exception\PluginException If the instance cannot be created, such as if the ID is invalid.

Overrides FactoryInterface::createInstance

File

metatag_views/src/MetatagViewsCachePluginManager.php, line 39

Class

MetatagViewsCachePluginManager

Namespace

Drupal\metatag_views

Code

public function createInstance($plugin_id, array $configuration = []) {
  return $this
    ->wrap($this->viewsPluginManager
    ->createInstance($plugin_id, $configuration));
}