Returns configuration data form.
1 call to QuickTabsInstanceEditForm::getConfigurationDataForm()
File
- 
              src/Form/ QuickTabsInstanceEditForm.php, line 309 
Class
- QuickTabsInstanceEditForm
- Class QuickTabsInstanceEditForm.
Namespace
Drupal\quicktabs\FormCode
private function getConfigurationDataForm($qt) {
    $configuration_data = [
        '#type' => 'table',
        '#header' => [
            $this->t('Tab title'),
            $this->t('Tab weight'),
            $this->t('Tab type'),
            $this->t('Tab content'),
            $this->t('Operations'),
        ],
        '#empty' => $this->t('There are no tabs yet'),
        '#tabledrag' => [
            [
                'action' => 'order',
                'relationship' => 'sibling',
                'group' => 'mytable-order-weight',
            ],
        ],
    ];
    foreach ($qt->tabs as $index => $tab) {
        $tab['entity_id'] = $this->entity
            ->id();
        $tab['delta'] = $index;
        $configuration_data[$index] = $this->getRow($index, $tab);
    }
    return $configuration_data;
}