You are here

protected function MetatagViewsCachePluginManager::wrap in Metatag 8

Parameters

\Drupal\views\Plugin\views\cache\CachePluginBase $plugin:

Return value

\Drupal\metatag_views\MetatagViewsCacheWrapper

2 calls to MetatagViewsCachePluginManager::wrap()
MetatagViewsCachePluginManager::createInstance in metatag_views/src/MetatagViewsCachePluginManager.php
Creates a pre-configured instance of a plugin.
MetatagViewsCachePluginManager::getInstance in metatag_views/src/MetatagViewsCachePluginManager.php
Gets a preconfigured instance of a plugin.

File

metatag_views/src/MetatagViewsCachePluginManager.php, line 32

Class

MetatagViewsCachePluginManager

Namespace

Drupal\metatag_views

Code

protected function wrap(CachePluginBase $plugin) {
  return new MetatagViewsCacheWrapper($plugin);
}