19 lines
391 B
PHP
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();
|
|
}
|
|
|
|
}
|