You are here

protected function DateBase::datePickerExists in Webform 6.x

Determine if the the jQuery UI date picker is supported.

Return value

bool TRUE if Drupal 8 or for Drupal 9 support the jQuery UI date picker module is installed.

See also

\webform_library_info_alter

8 calls to DateBase::datePickerExists()
Date::defineDefaultProperties in src/Plugin/WebformElement/Date.php
Define an element's default properties.
Date::form in src/Plugin/WebformElement/Date.php
Gets the actual configuration webform array to be built.
Date::prepare in src/Plugin/WebformElement/Date.php
Prepare an element to be rendered within a webform.
Date::setDefaultValue in src/Plugin/WebformElement/Date.php
Set an element's default value using saved data.
DateBase::form in src/Plugin/WebformElement/DateBase.php
Gets the actual configuration webform array to be built.

... See full list

File

src/Plugin/WebformElement/DateBase.php, line 713

Class

DateBase
Provides a base 'date' class.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function datePickerExists() {
  return floatval(\Drupal::VERSION) < 9 || $this->moduleHandler
    ->moduleExists('jquery_ui_datepicker');
}