public function SlickAdmin::closingForm in Slick Carousel 7.3
Same name and namespace in other branches
- 8.2 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::closingForm()
- 8 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::closingForm()
Returns the closing ending form elements.
Overrides BlazyAdminExtended::closingForm
1 call to SlickAdmin::closingForm()
- SlickAdmin::buildSettingsForm in src/
Form/ SlickAdmin.php - Returns the main form elements.
File
- src/
Form/ SlickAdmin.php, line 272
Class
- SlickAdmin
- Provides resusable admin functions, or form elements.
Namespace
Drupal\slick\FormCode
public function closingForm(array &$form, $definition = []) {
$form['override'] = [
'#title' => t('Override main optionset'),
'#type' => 'checkbox',
'#description' => 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' => t('Overridable options'),
'#description' => 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,
],
],
],
];
parent::closingForm($form, $definition);
}