TagsHeaderBase.php in Purge 8.3
File
src/Plugin/Purge/TagsHeader/TagsHeaderBase.php
View source
<?php
namespace Drupal\purge\Plugin\Purge\TagsHeader;
use Drupal\Core\Plugin\PluginBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
abstract class TagsHeaderBase extends PluginBase implements TagsHeaderInterface {
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition);
}
public function getHeaderName() {
return $this
->getPluginDefinition()['header_name'];
}
public function getValue(array $tags) {
return implode(' ', $tags);
}
public function isEnabled() {
return TRUE;
}
}
Classes
Name |
Description |
TagsHeaderBase |
Base implementation for plugins that add and format a cache tags header. |