Commit 72bf9a42 authored by renatog's avatar renatog Committed by renatog
Browse files

Issue #3270594 by RenatoG: Bulk operation to convert case isn't considering...

Issue #3270594 by RenatoG: Bulk operation to convert case isn't considering the settings for default case
parent 00b34d7c
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -385,6 +385,20 @@ class BlockClassBulkOperationsForm extends ConfigFormBase {

        break;

      case 'convert_to_lowercase':

        if (empty($config->get('default_case')) || $config->get('default_case') == 'standard') {
          return FALSE;
        }

        $default_case = $config->get('default_case');

        if ($default_case == 'uppercase') {
          $form_state->setErrorByName('operation', $this->t('You selected to convert all classes to lowercase but your configuration is to use all with Uppercase. Please see you settings <a href="/admin/config/content/block-class/settings">here</a>'));
        }

        break;

    }

  }