You are here

protected function RowPluginBase::defineOptions in Views (for Drupal 7) 8.3

Information about options for all kinds of purposes will be held here. @code 'option_name' => array(

  • 'default' => default value,
  • 'translatable' => (optional) TRUE/FALSE (wrap in t() on export if true),
  • '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().
  • 'bool' => (optional) TRUE/FALSE Is the value a boolean value. This will change the export format to TRUE/FALSE instead of 1/0.

),

Return value

array Returns the options of this handler/plugin.

Overrides PluginBase::defineOptions

9 calls to RowPluginBase::defineOptions()
Entity::defineOptions in lib/Views/system/Plugin/views/row/Entity.php
Overrides Drupal\views\Plugin\views\row\RowPluginBase::defineOptions().
Fields::defineOptions in lib/Drupal/views/Plugin/views/row/Fields.php
Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
RowPluginBase::init in lib/Drupal/views/Plugin/views/row/RowPluginBase.php
Initialize the row plugin.
RowTest::defineOptions in tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/row/RowTest.php
Overrides Drupal\views\Plugin\views\row\RowPluginBase::defineOptions().
Rss::defineOptions in lib/Views/node/Plugin/views/row/Rss.php
Information about options for all kinds of purposes will be held here. @code 'option_name' => array(

... See full list

8 methods override RowPluginBase::defineOptions()
Entity::defineOptions in lib/Views/system/Plugin/views/row/Entity.php
Overrides Drupal\views\Plugin\views\row\RowPluginBase::defineOptions().
Fields::defineOptions in lib/Drupal/views/Plugin/views/row/Fields.php
Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
RowTest::defineOptions in tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/row/RowTest.php
Overrides Drupal\views\Plugin\views\row\RowPluginBase::defineOptions().
Rss::defineOptions in lib/Views/node/Plugin/views/row/Rss.php
Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
Rss::defineOptions in lib/Views/comment/Plugin/views/row/Rss.php
Information about options for all kinds of purposes will be held here. @code 'option_name' => array(

... See full list

File

lib/Drupal/views/Plugin/views/row/RowPluginBase.php, line 62
Definition of Drupal\views\Plugin\views\row\RowPluginBase.

Class

RowPluginBase
Default plugin to view a single row of a table. This is really just a wrapper around a theme function.

Namespace

Drupal\views\Plugin\views\row

Code

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