oliverdavies.uk/modules/opd_presentations/src/Presentation.php
2025-06-14 19:10:56 +01:00

19 lines
391 B
PHP

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