protected function SharerichForm::buildOverviewForm in Sharerich 8
Helper to build list of services.
Return value
array form The form containing services.
1 call to SharerichForm::buildOverviewForm()
- SharerichForm::form in src/
Form/ SharerichForm.php - Gets the actual form array to be built.
File
- src/
Form/ SharerichForm.php, line 93 - Contains \Drupal\sharerich\Form\SharerichForm.
Class
- SharerichForm
- Class SharerichForm.
Namespace
Drupal\sharerich\FormCode
protected function buildOverviewForm() {
$form = array(
'#type' => 'table',
'#header' => array(
$this
->t('Service'),
array(
'data' => $this
->t('Enabled'),
'class' => array(
'checkbox',
),
),
$this
->t('Weight'),
array(
'data' => $this
->t('Markup'),
'colspan' => 3,
),
),
'#tabledrag' => array(
array(
'action' => 'order',
'relationship' => 'sibling',
'group' => 'item-weight',
),
),
'#attached' => array(
'library' => array(
'sharerich/sharerich',
),
),
);
$form = array_merge($form, $this
->buildOverviewFormRows());
return $form;
}