Commit 1fe48936 authored by osman's avatar osman

Display setting field description at all times.

parent aee544cb
......@@ -99,17 +99,10 @@ class LazyForm extends ConfigFormBase {
'#open' => TRUE,
];
$alter_tag_description = '';
if (
!(bool) $config->get('alter_tag')['img']
&& !(bool) $config->get('alter_tag')['iframe']
) {
$alter_tag_description = $this->t('Only selected tags will be lazy-loaded in activated text-formats.');
}
$form['settings']['alter_tag'] = [
'#type' => 'checkboxes',
'#title' => $this->t('Select the inline elements to be lazy-loaded via filter.'),
'#description' => $alter_tag_description,
'#description' => $this->t('Only selected tags will be lazy-loaded in activated text-formats.'),
'#options' => [
'img' => $this->t('Enable for images (%img tags)', ['%img' => '<img>']),
'iframe' => $this->t('Enable for iframes (%iframe tags)', ['%iframe' => '<iframe>']),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment