function RowPluginBase::defineOptions
Same name in other branches
- 9 core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::defineOptions()
- 8.9.x core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::defineOptions()
- 11.x core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::defineOptions()
Overrides PluginBase::defineOptions
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.
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\rowCode
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.