public function SlickAdmin::fieldableForm in Slick Carousel 8
Same name and namespace in other branches
- 8.2 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::fieldableForm()
- 7.3 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::fieldableForm()
Returns re-usable fieldable formatter form elements.
1 call to SlickAdmin::fieldableForm()
- SlickAdmin::buildSettingsForm in src/
Form/ SlickAdmin.php - Returns the main form elements.
File
- src/
Form/ SlickAdmin.php, line 291
Class
- SlickAdmin
- Provides resusable admin functions, or form elements.
Namespace
Drupal\slick\FormCode
public function fieldableForm(array &$form, $definition = []) {
$this->blazyAdmin
->fieldableForm($form, $definition);
if (isset($form['thumbnail'])) {
$form['thumbnail']['#description'] = $this
->t("Only needed if <em>Optionset thumbnail</em> is provided. Maybe the same field as the main image, only different instance and image style. Leave empty to not use thumbnail pager.");
}
if (isset($form['overlay'])) {
$form['overlay']['#title'] = $this
->t('Overlay media/slicks');
$form['overlay']['#description'] = $this
->t('For audio/video, be sure the display is not image. For nested slicks, use the Slick carousel formatter for this field. Zebra layout is reasonable for overlay and captions.');
}
}