You are here

public function OptionsFormHelperTrait::isGoogleCalendar in FullCalendar 8.2

Same name and namespace in other branches
  1. 8.5 src/Plugin/fullcalendar/type/OptionsFormHelperTrait.php \Drupal\fullcalendar\Plugin\fullcalendar\type\OptionsFormHelperTrait::isGoogleCalendar()
  2. 8.4 src/Plugin/fullcalendar/type/OptionsFormHelperTrait.php \Drupal\fullcalendar\Plugin\fullcalendar\type\OptionsFormHelperTrait::isGoogleCalendar()

Check for valid Google Calendar API settings.

Parameters

$settings:

Return value

bool

File

src/Plugin/fullcalendar/type/OptionsFormHelperTrait.php, line 370

Class

OptionsFormHelperTrait

Namespace

Drupal\fullcalendar\Plugin\fullcalendar\type

Code

public function isGoogleCalendar($settings) {
  return !empty($settings['google']['googleCalendarApiKey']) && !empty($settings['google']['googleCalendarId']);
}