You are here

RadioactivityIncidents.php in Radioactivity 8.3

Same filename and directory in other branches
  1. 4.0.x src/Plugin/QueueWorker/RadioactivityIncidents.php

File

src/Plugin/QueueWorker/RadioactivityIncidents.php
View source
<?php

namespace Drupal\radioactivity\Plugin\QueueWorker;


/**
 * Processes radioactivity emits.
 *
 * @QueueWorker(
 *   id = "radioactivity_incidents",
 *   title = @Translation("Process radioactivity incidents"),
 *   cron = {"time" = 10}
 * )
 */
class RadioactivityIncidents extends RadioactivityQueueWorkerBase {

  /**
   * {@inheritdoc}
   */
  public function processItem($data) {
    $this->radioactivityProcessor
      ->queueProcessIncidents($data['entity_type'], $data['incidents']);
  }

}

Classes

Namesort descending Description
RadioactivityIncidents Processes radioactivity emits.