Loading src/Form/CopypreventionSettingsForm.php +2 −2 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ class CopypreventionSettingsForm extends ConfigFormBase { 'copy' => $this->t('Disable copy to clipboard: oncopy="return false;"'), 'contextmenu' => $this->t('Disable right-click context menu: oncontextmenu="return false;"'), ], '#default_value' => $this->config->get('copyprevention_body'), '#default_value' => $this->config->get('copyprevention_body') ?: [], ]; $form['images'] = [ '#type' => 'details', Loading @@ -79,7 +79,7 @@ class CopypreventionSettingsForm extends ConfigFormBase { 'contextmenu' => $this->t('Disable right-click context menu on images: oncontextmenu="return false;"'), 'transparentgif' => $this->t('Place transparent gif image above all images'), ], '#default_value' => $this->config->get('copyprevention_images'), '#default_value' => $this->config->get('copyprevention_images') ?: [], ]; $form['images']['copyprevention_images_min_dimension'] = [ '#type' => 'select', Loading Loading
src/Form/CopypreventionSettingsForm.php +2 −2 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ class CopypreventionSettingsForm extends ConfigFormBase { 'copy' => $this->t('Disable copy to clipboard: oncopy="return false;"'), 'contextmenu' => $this->t('Disable right-click context menu: oncontextmenu="return false;"'), ], '#default_value' => $this->config->get('copyprevention_body'), '#default_value' => $this->config->get('copyprevention_body') ?: [], ]; $form['images'] = [ '#type' => 'details', Loading @@ -79,7 +79,7 @@ class CopypreventionSettingsForm extends ConfigFormBase { 'contextmenu' => $this->t('Disable right-click context menu on images: oncontextmenu="return false;"'), 'transparentgif' => $this->t('Place transparent gif image above all images'), ], '#default_value' => $this->config->get('copyprevention_images'), '#default_value' => $this->config->get('copyprevention_images') ?: [], ]; $form['images']['copyprevention_images_min_dimension'] = [ '#type' => 'select', Loading