function ViewsSelection::defaultConfiguration

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php \Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection::defaultConfiguration()
  2. 10 core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php \Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection::defaultConfiguration()
  3. 11.x core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php \Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection::defaultConfiguration()

Overrides SelectionPluginBase::defaultConfiguration

File

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

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

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