\DateTime::ISO8601, ]; } /** * {@inheritdoc} */ abstract public function postProcess($value); /** * {@inheritdoc} */ abstract public function prepareForInput($value); /** * {@inheritdoc} */ public function getJsonSchema() { return [ 'type' => 'string', ]; } /** * {@inheritdoc} */ public function getSettingsForm(array $resource_field_info) { $settings = empty($resource_field_info['enhancer']['settings']) ? $this->getConfiguration() : $resource_field_info['enhancer']['settings']; return [ 'dateTimeFormat' => [ '#type' => 'textfield', '#title' => $this->t('Format'), '#description' => $this->t('Use a valid date format.'), '#default_value' => $settings['dateTimeFormat'], ], ]; } }