You are here

EnergyBelowCutoffEvent.php in Radioactivity 4.0.x

Same filename and directory in other branches
  1. 8.3 src/Event/EnergyBelowCutoffEvent.php

File

src/Event/EnergyBelowCutoffEvent.php
View 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

Namesort descending Description
EnergyBelowCutoffEvent Represents a 'Energy is below the cutoff level' event.