You are here

public function ExtraFieldTokenPlugin::defaultConfiguration in Entity Extra Field 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/ExtraFieldType/ExtraFieldTokenPlugin.php \Drupal\entity_extra_field\Plugin\ExtraFieldType\ExtraFieldTokenPlugin::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ExtraFieldTypePluginBase::defaultConfiguration

File

src/Plugin/ExtraFieldType/ExtraFieldTokenPlugin.php, line 24

Class

ExtraFieldTokenPlugin
Define extra field token plugin.

Namespace

Drupal\entity_extra_field\Plugin\ExtraFieldType

Code

public function defaultConfiguration() : array {
  return [
    'type' => NULL,
    'token' => NULL,
  ] + parent::defaultConfiguration();
}