public function Entity::buildOptionsForm in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\row\RowPluginBase::buildOptionsForm().
Overrides RowPluginBase::buildOptionsForm
2 calls to Entity::buildOptionsForm()
- View::buildOptionsForm in lib/
Views/ node/ Plugin/ views/ row/ View.php - Overrides Views\system\Plugin\views\row\Entity::buildOptionsForm().
- View::buildOptionsForm in lib/
Views/ comment/ Plugin/ views/ row/ View.php - Overrides Views\system\Plugin\views\row\Entity::buildOptionsForm().
2 methods override Entity::buildOptionsForm()
- View::buildOptionsForm in lib/
Views/ node/ Plugin/ views/ row/ View.php - Overrides Views\system\Plugin\views\row\Entity::buildOptionsForm().
- View::buildOptionsForm in lib/
Views/ comment/ Plugin/ views/ row/ View.php - Overrides Views\system\Plugin\views\row\Entity::buildOptionsForm().
File
- lib/
Views/ system/ Plugin/ views/ row/ Entity.php, line 80 - Definition of Views\system\Plugin\views\row\Entity.
Class
- Entity
- Generic entity row plugin to provide a common base for all entity types.
Namespace
Views\system\Plugin\views\rowCode
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'],
);
}