class MetatagViewsCachePluginManager in Metatag 8
Hierarchy
- class \Drupal\metatag_views\MetatagViewsCachePluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface
Expanded class hierarchy of MetatagViewsCachePluginManager
1 string reference to 'MetatagViewsCachePluginManager'
- metatag_views.services.yml in metatag_views/
metatag_views.services.yml - metatag_views/metatag_views.services.yml
1 service uses MetatagViewsCachePluginManager
File
- metatag_views/
src/ MetatagViewsCachePluginManager.php, line 11
Namespace
Drupal\metatag_viewsView source
class MetatagViewsCachePluginManager implements PluginManagerInterface, CachedDiscoveryInterface, CacheableDependencyInterface {
/**
* @var \Drupal\views\Plugin\ViewsPluginManager
*/
protected $viewsPluginManager;
/**
* MetatagViewsCachePluginManager constructor.
*
* @param \Drupal\views\Plugin\ViewsPluginManager $views_plugin_manager
*/
public function __construct(ViewsPluginManager $views_plugin_manager) {
$this->viewsPluginManager = $views_plugin_manager;
}
/**
* @param \Drupal\views\Plugin\views\cache\CachePluginBase $plugin
*
* @return \Drupal\metatag_views\MetatagViewsCacheWrapper
*/
protected function wrap(CachePluginBase $plugin) {
return new MetatagViewsCacheWrapper($plugin);
}
/**
* {@inheritdoc}
*/
public function createInstance($plugin_id, array $configuration = []) {
return $this
->wrap($this->viewsPluginManager
->createInstance($plugin_id, $configuration));
}
/**
* {@inheritdoc}
*/
public function getInstance(array $options) {
return $this
->wrap($this->viewsPluginManager
->getInstance($options));
}
/**
* {@inheritdoc}
*/
public function getCacheContexts() {
return $this->viewsPluginManager
->getCacheContexts();
}
/**
* {@inheritdoc}
*/
public function getCacheTags() {
return $this->viewsPluginManager
->getCacheTags();
}
/**
* {@inheritdoc}
*/
public function getCacheMaxAge() {
return $this->viewsPluginManager
->getCacheMaxAge();
}
/**
* {@inheritdoc}
*/
public function clearCachedDefinitions() {
$this->viewsPluginManager
->clearCachedDefinitions();
}
/**
* {@inheritdoc}
*/
public function useCaches($use_caches = FALSE) {
$this->viewsPluginManager
->useCaches($use_caches);
}
/**
* {@inheritdoc}
*/
public function getDefinition($plugin_id, $exception_on_invalid = TRUE) {
return $this->viewsPluginManager
->getDefinition($plugin_id, $exception_on_invalid);
}
/**
* {@inheritdoc}
*/
public function getDefinitions() {
return $this->viewsPluginManager
->getDefinitions();
}
/**
* {@inheritdoc}
*/
public function hasDefinition($plugin_id) {
return $this->viewsPluginManager
->hasDefinition($plugin_id);
}
}