public function SlickAdmin::closingForm in Slick Carousel 8.2
Same name and namespace in other branches
- 8 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::closingForm()
- 7.3 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::closingForm()
Returns the closing ending form elements.
1 call to SlickAdmin::closingForm()
- SlickAdmin::buildSettingsForm in src/
Form/ SlickAdmin.php - Returns the main form elements.
File
- src/
Form/ SlickAdmin.php, line 330
Class
- SlickAdmin
- Provides resusable admin functions, or form elements.
Namespace
Drupal\slick\FormCode
public function closingForm(array &$form, $definition = []) {
$form['override'] = [
'#title' => $this
->t('Override main optionset'),
'#type' => 'checkbox',
'#description' => $this
->t('If checked, the following options will override the main optionset. Useful to re-use one optionset for several different displays.'),
'#weight' => 112,
'#enforced' => TRUE,
];
$form['overridables'] = [
'#type' => 'checkboxes',
'#title' => $this
->t('Overridable options'),
'#description' => $this
->t("Override the main optionset to re-use one. Anything dictated here will override the current main optionset. Unchecked means FALSE"),
'#options' => $this
->getOverridableOptions(),
'#weight' => 113,
'#enforced' => TRUE,
'#states' => [
'visible' => [
':input[name$="[override]"]' => [
'checked' => TRUE,
],
],
],
];
$this->blazyAdmin
->closingForm($form, $definition);
}