You are here

public function CalendarEventManager::getEmbeddedWidget in Opigno calendar event 8

Same name and namespace in other branches
  1. 3.x src/CalendarEventManager.php \Drupal\opigno_calendar_event\CalendarEventManager::getEmbeddedWidget()

Returns the embedded widget.

Return value

\Drupal\opigno_calendar_event\CalendarEventEmbeddedWidget An instance of the embedded widget.

File

src/CalendarEventManager.php, line 238

Class

CalendarEventManager
The calendar event manager.

Namespace

Drupal\opigno_calendar_event

Code

public function getEmbeddedWidget() {
  if (!isset($this->embeddedWidget)) {
    $this->embeddedWidget = new CalendarEventEmbeddedWidget($this->entityTypeManager);
  }
  return $this->embeddedWidget;
}