You are here

public function CalendarEvent::getType in Calendar 8.2

Same name and namespace in other branches
  1. 8 src/CalendarEvent.php \Drupal\calendar\CalendarEvent::getType()

Getter for the type.

Return value

string The type of the entity.

File

src/CalendarEvent.php, line 223

Class

CalendarEvent
Defines a calendar event object.

Namespace

Drupal\calendar

Code

public function getType() {
  return $this->entity
    ->getEntityTypeId();
}