static function Helpers::calendar_systems_profiles in Calendar Systems 8.2
Internal static cache helper to get all available profiles.
Return value
An array of available profiles.
3 calls to Helpers::calendar_systems_profiles()
- AdminActionConfirm::submitForm in src/
Form/ AdminActionConfirm.php - Form submission handler.
- AdminSettings::buildForm in src/
Form/ AdminSettings.php - Form constructor.
- Helpers::calendar_systems_get_calendar_system_name in src/
Helpers.php - Helper to determine the active calendar system
File
- src/
Helpers.php, line 64 - Contains \Drupal\calendar_systems.
Class
Namespace
Drupal\calendar_systemsCode
static function calendar_systems_profiles() {
$profiles = \Drupal::config('calendar_systems.settings')
->get('profiles');
if (empty($profiles)) {
$profiles = [];
}
return $profiles;
}