17 lines
315 B
PHP
17 lines
315 B
PHP
|
<?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();
|
||
|
}
|
||
|
|
||
|
}
|