final public function PurgeBlockForm::__construct in Purge 8.3
Construct a PurgeBlockForm object.
Parameters
string[] $config: The form's configuration array, which determines how and what we purge.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\purge\Plugin\Purge\Processor\ProcessorsServiceInterface $purge_processors: The purge processors service.
\Drupal\purge\Plugin\Purge\Purger\PurgersServiceInterface $purge_purgers: The purge purgers service.
\Drupal\purge\Plugin\Purge\Invalidation\InvalidationsServiceInterface $purge_invalidation_factory: The purge invalidations factory service.
\Drupal\purge\Plugin\Purge\Queue\QueueServiceInterface $purge_queue: The purge queue service.
\Drupal\purge\Plugin\Purge\Queuer\QueuersServiceInterface $purge_queuers: The purge queuers service.
File
- modules/
purge_ui/ src/ Form/ PurgeBlockForm.php, line 92
Class
- PurgeBlockForm
- End-user form for \Drupal\purge_ui\Plugin\Block\PurgeBlock.
Namespace
Drupal\purge_ui\FormCode
public final function __construct(array $config, MessengerInterface $messenger, ProcessorsServiceInterface $purge_processors, PurgersServiceInterface $purge_purgers, InvalidationsServiceInterface $purge_invalidation_factory, QueueServiceInterface $purge_queue, QueuersServiceInterface $purge_queuers) {
if (is_null($config)) {
throw new \LogicException('\\Drupal\\purge_ui\\Form\\PurgeBlockForm should be directly instantiated with block configuration passed in.');
}
$this->config = $config;
$this->messenger = $messenger;
$this->processor = $purge_processors
->get('purge_ui_block_processor');
$this->queuer = $purge_queuers
->get('purge_ui_block_queuer');
$this->purgePurgers = $purge_purgers;
$this->purgeInvalidationFactory = $purge_invalidation_factory;
$this->purgeQueue = $purge_queue;
}