function RowPluginBase::defineOptions

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::defineOptions()
  2. 8.9.x core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::defineOptions()
  3. 10 core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::defineOptions()

Overrides PluginBase::defineOptions

8 calls to RowPluginBase::defineOptions()
DataFieldRow::defineOptions in core/modules/rest/src/Plugin/views/row/DataFieldRow.php
Information about options for all kinds of purposes will be held here.
EntityRow::defineOptions in core/modules/views/src/Plugin/views/row/EntityRow.php
Information about options for all kinds of purposes will be held here.
Fields::defineOptions in core/modules/views/src/Plugin/views/row/Fields.php
OpmlFields::defineOptions in core/modules/views/src/Plugin/views/row/OpmlFields.php
Information about options for all kinds of purposes will be held here.
RowTest::defineOptions in core/modules/views/tests/modules/views_test_data/src/Plugin/views/row/RowTest.php
Information about options for all kinds of purposes will be held here.

... See full list

8 methods override RowPluginBase::defineOptions()
DataFieldRow::defineOptions in core/modules/rest/src/Plugin/views/row/DataFieldRow.php
Information about options for all kinds of purposes will be held here.
EntityRow::defineOptions in core/modules/views/src/Plugin/views/row/EntityRow.php
Information about options for all kinds of purposes will be held here.
Fields::defineOptions in core/modules/views/src/Plugin/views/row/Fields.php
OpmlFields::defineOptions in core/modules/views/src/Plugin/views/row/OpmlFields.php
Information about options for all kinds of purposes will be held here.
RowTest::defineOptions in core/modules/views/tests/modules/views_test_data/src/Plugin/views/row/RowTest.php
Information about options for all kinds of purposes will be held here.

... See full list

File

core/modules/views/src/Plugin/views/row/RowPluginBase.php, line 76

Class

RowPluginBase
Base class for Views row plugins.

Namespace

Drupal\views\Plugin\views\row

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    if (isset($this->base_table)) {
        $options['relationship'] = [
            'default' => 'none',
        ];
    }
    return $options;
}

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