You are here

public function Event::getStartDate in Booking and Availability Management Tools for Drupal 8

Overrides EventInterface::getStartDate

2 calls to Event::getStartDate()
Event::delete in modules/bat_event/src/Entity/Event.php
Deletes an entity permanently.
Event::save in modules/bat_event/src/Entity/Event.php
Saves an entity permanently.

File

modules/bat_event/src/Entity/Event.php, line 151
Contains \Drupal\bat_event\Entity\Event.

Class

Event
Defines the Event entity.

Namespace

Drupal\bat_event\Entity

Code

public function getStartDate() {
  $date = new \DateTime($this
    ->get('event_dates')->value);
  return $date;
}