function TestSelection::defaultConfiguration

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();
}

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