private function RadioactivityProcessor::dispatchBelowCutoffEvent in Radioactivity 4.0.x
Dispatch event to notify that the energy fell below the cutoff value.
This is needed for Rules integration, but can be used by any module that wants to use events.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to use for the event.
1 call to RadioactivityProcessor::dispatchBelowCutoffEvent()
- RadioactivityProcessor::queueProcessDecay in src/
RadioactivityProcessor.php - Queue processing of Radioactivity decays.
File
- src/
RadioactivityProcessor.php, line 406
Class
- RadioactivityProcessor
- Processes Radioactivity incidents and and energy decay.
Namespace
Drupal\radioactivityCode
private function dispatchBelowCutoffEvent(ContentEntityInterface $entity) {
$event = new EnergyBelowCutoffEvent($entity);
$this->eventDispatcher
->dispatch($event, 'radioactivity_field_cutoff');
}