You are here

public function TableRowSpan::buildOptionsForm in Views Table Rowspan 8

@inheritdoc

Overrides Table::buildOptionsForm

File

src/Plugin/views/style/TableRowSpan.php, line 35

Class

TableRowSpan
Style plugin to merge duplicate row in table.

Namespace

Drupal\views_table_rowspan\Plugin\views\style

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['rowspan'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Merge rows in table'),
    '#description' => $this
      ->t('Merge rows table that has same value (in a same group) use attribute @url', [
      '@url' => 'http://www.w3schools.com/tags/att_td_rowspan.asp',
    ]),
    '#default_value' => $this->options['rowspan'],
    '#weight' => 0,
  ];
}