function ClearCacheBlock::create

Overrides ContainerFactoryPluginInterface::create

File

core/modules/system/src/Plugin/Block/ClearCacheBlock.php, line 44

Class

ClearCacheBlock
Provides a block to display 'Clear cache' elements.

Namespace

Drupal\system\Plugin\Block

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) : static {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('form_builder'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.