public function RulesMediaEvent::getEntity in Scheduler 2.x
Returns the entity which is being processed.
File
- scheduler_rules_integration/src/ Event/ RulesMediaEvent.php, line 48 
Class
- RulesMediaEvent
- Class for all Rules media events.
Namespace
Drupal\scheduler_rules_integration\EventCode
public function getEntity() {
  // The Rules module requires the entity to be stored in a specifically named
  // property which will obviously vary according to the entity type being
  // processed. This generic getEntity() method is not strictly required by
  // Rules but is added for convenience when manipulating the event entity.
  return $this->media;
}