protected function Ingredient::display_options_row in Recipe 8.2
Set the row style and row style plugins to the display_options.
2 calls to Ingredient::display_options_row()
- Ingredient::blockDisplayOptions in modules/
ingredient/ src/ Plugin/ views/ wizard/ Ingredient.php - Retrieves the block display options.
- Ingredient::pageDisplayOptions in modules/
ingredient/ src/ Plugin/ views/ wizard/ Ingredient.php - Retrieves the page display options.
File
- modules/
ingredient/ src/ Plugin/ views/ wizard/ Ingredient.php, line 114
Class
- Ingredient
- Wizard plugin for creating Ingredient views.
Namespace
Drupal\ingredient\Plugin\views\wizardCode
protected function display_options_row(&$display_options, $row_plugin, $row_options) {
switch ($row_plugin) {
case 'full_posts':
$display_options['row']['type'] = 'entity:ingredient';
$display_options['row']['options']['view_mode'] = 'full';
break;
case 'names_linked':
case 'names':
$display_options['row']['type'] = 'fields';
$display_options['fields']['name']['id'] = 'name';
$display_options['fields']['name']['table'] = 'ingredient_field_data';
$display_options['fields']['name']['field'] = 'name';
$display_options['fields']['name']['settings']['link_to_entity'] = $row_plugin === 'names_linked';
$display_options['fields']['name']['plugin_id'] = 'field';
break;
}
}