You are here

public static function AppCallbackUrlWidget::defaultSettings in Apigee Edge 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides UriWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/AppCallbackUrlWidget.php, line 51

Class

AppCallbackUrlWidget
Plugin implementation of the 'app_callback_url' widget.

Namespace

Drupal\apigee_edge\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $settings = parent::defaultSettings();

  // Allows these to be overridden per entity programmatically
  // if it is necessary.
  $settings['placeholder'] = NULL;
  $settings['callback_url_pattern'] = NULL;

  // If you override these and the field is used as a base field then
  // you can not translatable them on the UI because these values are
  // being cached to the base field definition.
  // @see https://www.drupal.org/node/2546212
  $settings['callback_url_description'] = NULL;
  $settings['callback_url_pattern_error_message'] = NULL;
  return $settings;
}