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\system\Plugin\views\row\Entity::buildOptionsForm().
NodeRow::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/row/NodeRow.php
Overrides Drupal\system\Plugin\views\row\Entity::buildOptionsForm().
2 methods override EntityRow::buildOptionsForm()
CommentRow::buildOptionsForm in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php
Overrides Drupal\system\Plugin\views\row\Entity::buildOptionsForm().
NodeRow::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/row/NodeRow.php
Overrides Drupal\system\Plugin\views\row\Entity::buildOptionsForm().

File

drupal/core/modules/system/lib/Drupal/system/Plugin/views/row/EntityRow.php, line 79
Definition of Drupal\system\Plugin\views\row\EntityRow.

Class

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

Namespace

Drupal\system\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'],
  );
}