You are here

public function ViewsSelection::defaultConfiguration in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php \Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides SelectionPluginBase::defaultConfiguration

File

core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php, line 112

Class

ViewsSelection
Plugin implementation of the 'selection' entity_reference.

Namespace

Drupal\views\Plugin\EntityReferenceSelection

Code

public function defaultConfiguration() {
  return [
    'view' => [
      'view_name' => NULL,
      'display_name' => NULL,
      'arguments' => [],
    ],
  ] + parent::defaultConfiguration();
}