You are here

public function RuleSchedule::getComponent in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Entity/RuleSchedule.php \Drupal\rng\Entity\RuleSchedule::getComponent()
  2. 3.x src/Entity/RuleSchedule.php \Drupal\rng\Entity\RuleSchedule::getComponent()

Get associated rule component.

Return value

\Drupal\rng\RuleComponentInterface A rule component entity.

Overrides RuleScheduleInterface::getComponent

File

src/Entity/RuleSchedule.php, line 32

Class

RuleSchedule
Defines the rule scheduler entity.

Namespace

Drupal\rng\Entity

Code

public function getComponent() {
  return $this
    ->get('component')->entity;
}