You are here

public function TestSelection::defaultConfiguration in Drupal 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides SelectionPluginBase::defaultConfiguration

1 method overrides TestSelection::defaultConfiguration()
TestSelectionWithInvalidDefaultConfiguration::defaultConfiguration in core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php
Gets default configuration for this plugin.

File

core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php, line 209

Class

TestSelection
Provides a testing plugin.

Namespace

Drupal\Tests\Core\EntityReferenceSelection

Code

public function defaultConfiguration() {
  return [
    'setting2' => [
      'qux' => 'qux value',
    ],
    'setting3' => 'foobar',
  ] + parent::defaultConfiguration();
}