public function FlippedTable::buildOptionsForm in Views Flipped Table 8
Render the given style.
Overrides Table::buildOptionsForm
File
- src/
Plugin/ views/ style/ FlippedTable.php, line 31
Class
- FlippedTable
- Style plugin to render each item as a column in a table.
Namespace
Drupal\views_flipped_table\Plugin\views\styleCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
// For now, remove access to row class form elements since I'm not sure how
// they should work once flipped. Replacements would be tricky.
$form['row_class']['#access'] = FALSE;
$form['default_row_class']['#access'] = FALSE;
$form['flipped_table_header_first_field'] = array(
'#type' => 'checkbox',
'#title' => $this
->t('Show the first field as the table header'),
'#default_value' => $this->options['flipped_table_header_first_field'],
'#description' => $this
->t("Outputs the flipped table's row for the first field inside a table header element."),
);
}