You are here

protected function RowPluginBase::defineOptions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

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
Information about options for all kinds of purposes will be held here.
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
Information about options for all kinds of purposes will be held here.
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 64

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