You are here

public function SlickAdmin::fieldableForm in Slick Carousel 7.3

Same name and namespace in other branches
  1. 8.2 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::fieldableForm()
  2. 8 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::fieldableForm()

Returns re-usable fieldable formatter form elements.

Overrides BlazyAdminExtended::fieldableForm

1 call to SlickAdmin::fieldableForm()
SlickAdmin::buildSettingsForm in src/Form/SlickAdmin.php
Returns the main form elements.

File

src/Form/SlickAdmin.php, line 241

Class

SlickAdmin
Provides resusable admin functions, or form elements.

Namespace

Drupal\slick\Form

Code

public function fieldableForm(array &$form, $definition = []) {
  parent::fieldableForm($form, $definition);
  if (isset($form['thumbnail'])) {
    $form['thumbnail']['#description'] = 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'] = t('Overlay media/slicks');
    $form['overlay']['#description'] = 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.');
  }
}