function ConfigurableTestClass::setDefaultConfiguration

Sets the default configuration this test will return.

Parameters

array $default_configuration: The default configuration to use.

File

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

Class

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

Namespace

Drupal\Tests\Core\Plugin

Code

public function setDefaultConfiguration(array $default_configuration) : void {
    $this->defaultConfiguration = $default_configuration;
}

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