You are here

public function OpignoDateRangeWidget::getDatePattern in Opigno calendar 3.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldWidget/OpignoDateRangeWidget.php \Drupal\opigno_calendar\Plugin\Field\FieldWidget\OpignoDateRangeWidget::getDatePattern()
1 call to OpignoDateRangeWidget::getDatePattern()
OpignoDateRangeWidget::massageFormValues in src/Plugin/Field/FieldWidget/OpignoDateRangeWidget.php
Massages the form values into the format expected for field values.

File

src/Plugin/Field/FieldWidget/OpignoDateRangeWidget.php, line 30

Class

OpignoDateRangeWidget
Plugin implementation of the 'opigno_daterange' widget.

Namespace

Drupal\opigno_calendar\Plugin\Field\FieldWidget

Code

public function getDatePattern() {
  return \Drupal::config('core.date_format.datepicker')
    ->get('pattern');
}