You are here

public function EnergyBelowCutoffEvent::__construct in Radioactivity 8.3

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

Constructs the object.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.

File

src/Event/EnergyBelowCutoffEvent.php, line 30

Class

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

Namespace

Drupal\radioactivity\Event

Code

public function __construct(ContentEntityInterface $entity) {
  $this->entity = $entity;
}