Refactor
This commit is contained in:
parent
14cd79a960
commit
0871649c05
3 changed files with 4 additions and 2 deletions
|
@ -12,6 +12,8 @@ use Drupal\opd_presentations\Entity\Event;
|
|||
|
||||
final class Presentation extends Node implements NodeInterface {
|
||||
|
||||
public const NODE_TYPE = 'presentation';
|
||||
|
||||
public function getPastEvents(): EventCollection {
|
||||
$events = $this->get('field_events')->referencedEntities();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue