data-toggle="popover" attribute set will automatically initialize the popover upon page load. WARNING: This feature can sometimes impact performance. Disable if pages appear to hang after initial load."), * defaultValue = 1, * weight = -1, * groups = { * "javascript" = @Translation("JavaScript"), * "popovers" = @Translation("Popovers"), * }, * ) */ class PopoverEnabled extends SettingBase { /** * {@inheritdoc} */ public function alterFormElement(Element $form, FormStateInterface $form_state, $form_id = NULL) { parent::alterFormElement($form, $form_state, $form_id); $group = $this->getGroupElement($form, $form_state); $group->setProperty('description', t('Add small overlays of content, like those on the iPad, to any element for housing secondary information.')); } /** * {@inheritdoc} */ public function drupalSettings() { return !!$this->theme->getSetting('popover_enabled'); } }