You are here

public function EnergyBelowCutoffEvent::__construct in Radioactivity 4.0.x

Same name and namespace in other branches
  1. 8.3 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;
}