You are here

public function OpignoDateRangeWidget::getDatePattern in Opigno calendar 8

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldWidget/OpignoDateRangeWidget.php \Drupal\opigno_calendar\Plugin\Field\FieldWidget\OpignoDateRangeWidget::getDatePattern()
2 calls to OpignoDateRangeWidget::getDatePattern()
OpignoDateRangeWidget::formElement in src/Plugin/Field/FieldWidget/OpignoDateRangeWidget.php
Returns the form for a single field widget.
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 28

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');
}