Extract helper methods

This commit is contained in:
Oliver Davies 2020-11-10 19:51:53 +00:00
parent 06c3da1880
commit a656280e7b
5 changed files with 24 additions and 11 deletions

View file

@ -53,6 +53,10 @@ class Talk extends Node implements ContentEntityBundleInterface {
->max();
}
public function setEvents(array $events): void {
$this->set(self::FIELD_EVENTS, $events);
}
public function setNextDate(int $date): void {
$this->set(self::FIELD_EVENT_DATE, $date);
}