Ensure the correct event is returned
This commit is contained in:
parent
4715d02ae0
commit
08fc6c66be
3 changed files with 28 additions and 5 deletions
|
@ -28,10 +28,11 @@ trait PresentationCreationTrait {
|
|||
return $presentation;
|
||||
}
|
||||
|
||||
private function createEvent(string $eventDate): ParagraphInterface {
|
||||
private function createEvent(string $eventName, string $eventDate): ParagraphInterface {
|
||||
return Paragraph::create(
|
||||
[
|
||||
'field_date' => (new DrupalDateTime($eventDate))->getTimestamp(),
|
||||
'field_event_name' => $eventName,
|
||||
'type' => 'event',
|
||||
],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue