public function Meeting::setCalendarEvent in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 src/Entity/Meeting.php \Drupal\opigno_moxtra\Entity\Meeting::setCalendarEvent()
Sets the entity of the related calendar event.
Parameters
\Drupal\opigno_calendar_event\Entity\CalendarEvent $event: The entity of the related calendar event.
Return value
$this
Overrides MeetingInterface::setCalendarEvent
File
- src/
Entity/ Meeting.php, line 224
Class
- Meeting
- Defines the Workspace entity.
Namespace
Drupal\opigno_moxtra\EntityCode
public function setCalendarEvent($event) {
$this
->set('calendar_event', [
'target_id' => $event
->id(),
]);
return $this;
}