You are here

class EnergyBelowCutoffEvent in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x src/Event/EnergyBelowCutoffEvent.php \Drupal\radioactivity\Event\EnergyBelowCutoffEvent

Represents a 'Energy is below the cutoff level' event.

Hierarchy

Expanded class hierarchy of EnergyBelowCutoffEvent

See also

rules_entity_presave()

1 file declares its use of EnergyBelowCutoffEvent
RadioactivityProcessor.php in src/RadioactivityProcessor.php

File

src/Event/EnergyBelowCutoffEvent.php, line 13

Namespace

Drupal\radioactivity\Event
View source
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;
  }

}

Members