EnergyBelowCutoffEvent.php in Radioactivity 4.0.x
Same filename and directory in other branches
Namespace
Drupal\radioactivity\EventFile
src/Event/EnergyBelowCutoffEvent.phpView source
<?php
namespace Drupal\radioactivity\Event;
use Drupal\Core\Entity\ContentEntityInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Represents a 'Energy is below the cutoff level' event.
*
* @see rules_entity_presave()
*/
class EnergyBelowCutoffEvent extends Event {
const EVENT_NAME = 'radioactivity_field_cutoff';
/**
* The entity.
*
* @var \Drupal\Core\Entity\ContentEntityInterface
*/
public $entity;
/**
* Constructs the object.
*
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* The entity.
*/
public function __construct(ContentEntityInterface $entity) {
$this->entity = $entity;
}
}
Classes
Name | Description |
---|---|
EnergyBelowCutoffEvent | Represents a 'Energy is below the cutoff level' event. |