function ConfigurableTestClass::defaultConfiguration

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurableInterface::defaultConfiguration

File

core/tests/Drupal/Tests/Core/Plugin/ConfigurableTraitTest.php, line 201

Class

ConfigurableTestClass
A test class using ConfigurablePluginTrait that can modify the de.

Namespace

Drupal\Tests\Core\Plugin

Code

public function defaultConfiguration() : array {
    return $this->defaultConfiguration ?? $this->traitDefaultConfiguration();
}

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