oliverdavies.uk/modules/opd_presentations/src/Entity/Presentation.php

17 lines
315 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Drupal\opd_presentations\Entity;
use Drupal\node\Entity\Node;
use Drupal\node\NodeInterface;
final class Presentation extends Node implements NodeInterface {
public function getPastEvents(): array {
return $this->get('field_events')->referencedEntities();
}
}