public function EntityRow::buildOptionsForm

Overrides Drupal\views\Plugin\views\row\RowPluginBase::buildOptionsForm().

Overrides RowPluginBase::buildOptionsForm

2 calls to EntityRow::buildOptionsForm()
CommentRow::buildOptionsForm in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php
Overrides Drupal\views\Plugin\views\row\RowPluginBase::buildOptionsForm().
NodeRow::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/row/NodeRow.php
Overrides Drupal\views\Plugin\views\row\RowPluginBase::buildOptionsForm().
2 methods override EntityRow::buildOptionsForm()
CommentRow::buildOptionsForm in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php
Overrides Drupal\views\Plugin\views\row\RowPluginBase::buildOptionsForm().
NodeRow::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/row/NodeRow.php
Overrides Drupal\views\Plugin\views\row\RowPluginBase::buildOptionsForm().

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/row/EntityRow.php, line 106
Contains \Drupal\views\Plugin\views\row\EntityRow.

Class

EntityRow
Generic entity row plugin to provide a common base for all entity types.

Namespace

Drupal\views\Plugin\views\row

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  $options = $this
    ->buildViewModeOptions();
  $form['view_mode'] = array(
    '#type' => 'select',
    '#options' => $options,
    '#title' => t('View mode'),
    '#default_value' => $this->options['view_mode'],
  );
}