function Number::defaultConfiguration

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Theme/Plugin/DesignTokenValue/Number.php \Drupal\Core\Theme\Plugin\DesignTokenValue\Number::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array containing the default configuration.

Overrides ConfigurableTrait::defaultConfiguration

File

core/lib/Drupal/Core/Theme/Plugin/DesignTokenValue/Number.php, line 28

Class

Number
Number design token value.

Namespace

Drupal\Core\Theme\Plugin\DesignTokenValue

Code

public function defaultConfiguration() : array {
  return [
    'value' => 0,
  ] + parent::defaultConfiguration();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.