2025-06-10 20:47:23 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2025-06-12 02:10:08 +01:00
|
|
|
namespace Drupal\opd_presentations;
|
2025-06-10 20:47:23 +01:00
|
|
|
|
|
|
|
use Drupal\node\Entity\Node;
|
|
|
|
use Drupal\node\NodeInterface;
|
|
|
|
|
|
|
|
final class Presentation extends Node implements NodeInterface {
|
|
|
|
|
2025-06-12 02:10:08 +01:00
|
|
|
public const NODE_TYPE = 'presentation';
|
|
|
|
|
2025-06-12 02:10:08 +01:00
|
|
|
public function getPastEvents(): Events {
|
2025-06-12 02:10:09 +01:00
|
|
|
return Events::fromEvents($this->get('field_events')->referencedEntities())
|
2025-06-14 19:10:56 +01:00
|
|
|
->getPast();
|
2025-06-10 20:47:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|