You are here

class RadioactivityIncidents in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x src/Plugin/QueueWorker/RadioactivityIncidents.php \Drupal\radioactivity\Plugin\QueueWorker\RadioactivityIncidents

Processes radioactivity emits.

Plugin annotation


@QueueWorker(
  id = "radioactivity_incidents",
  title = @Translation("Process radioactivity incidents"),
  cron = {"time" = 10}
)

Hierarchy

Expanded class hierarchy of RadioactivityIncidents

File

src/Plugin/QueueWorker/RadioactivityIncidents.php, line 14

Namespace

Drupal\radioactivity\Plugin\QueueWorker
View source
class RadioactivityIncidents extends RadioactivityQueueWorkerBase {

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

}

Members

Namesort descending Modifiers Type Description Overrides
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
RadioactivityIncidents::processItem public function Works on a single queue item. Overrides QueueWorkerInterface::processItem
RadioactivityQueueWorkerBase::$radioactivityProcessor protected property The radioactivity.processor service.
RadioactivityQueueWorkerBase::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create
RadioactivityQueueWorkerBase::__construct public function Constructs a RadioactivityQueueWorkerBase object. Overrides PluginBase::__construct