getGroupElement($form, $form_state); $group->setProperty('description', t('These are global options. Each tooltip can independently override desired settings by appending the option name to data-. Example: data-animation="false".')); $group->setProperty('states', [ 'visible' => [ ':input[name="tooltip_enabled"]' => ['checked' => TRUE], ], ]); } /** * {@inheritdoc} */ public function drupalSettings() { return !!$this->theme->getSetting('tooltip_enabled'); } }