final public function PurgeBlock::__construct in Purge 8.3
Construct a new PurgeBlock instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The dependency injection container.
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides BlockPluginTrait::__construct
File
- modules/
purge_ui/ src/ Plugin/ Block/ PurgeBlock.php, line 35
Class
- PurgeBlock
- Let site administrators purge the current page.
Namespace
Drupal\purge_ui\Plugin\BlockCode
public final function __construct(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this
->setContainer($container);
}