Loading src/Service/BlockClassHelperService.php +5 −5 Original line number Diff line number Diff line Loading @@ -408,7 +408,7 @@ class BlockClassHelperService { if (preg_match('/[\'^£$%&*()}{@#~?><>,|=+¬]/', $classes)) { $form_state->setErrorByName('third_party_settings[block_class][classes]', $this->t("In class is allowed only letters, numbers, hyphen and underline")); $form_state->setErrorByName('third_party_settings][block_class][classes', $this->t("In class is allowed only letters, numbers, hyphen and underline")); return FALSE; Loading @@ -432,7 +432,7 @@ class BlockClassHelperService { if ($pipe_found === FALSE) { $form_state->setErrorByName('third_party_settings[block_class][attributes]', $this->t("You need to insert a pipe on attributes field")); $form_state->setErrorByName('third_party_settings][block_class][attributes', $this->t("You need to insert a pipe on attributes field")); return FALSE; Loading @@ -441,7 +441,7 @@ class BlockClassHelperService { // Prevent attribute id. if (str_contains($attributes, 'id|')) { $form_state->setErrorByName('third_party_settings[block_class][attributes]', $this->t("You can't the attribute id")); $form_state->setErrorByName('third_party_settings][block_class][attributes', $this->t("You can't the attribute id")); return FALSE; Loading @@ -450,7 +450,7 @@ class BlockClassHelperService { // Prevent attribute class. if (str_contains($attributes, 'class|')) { $form_state->setErrorByName('third_party_settings[block_class][attributes]', $this->t("You can't use class. Use the field class instead")); $form_state->setErrorByName('third_party_settings][block_class][attributes', $this->t("You can't use class. Use the field class instead")); return FALSE; Loading @@ -467,7 +467,7 @@ class BlockClassHelperService { if (!str_contains($attribute, '|')) { $form_state->setErrorByName('third_party_settings[block_class][attributes]', $this->t("You need to insert a pipe on attributes field")); $form_state->setErrorByName('third_party_settings][block_class][attributes', $this->t("You need to insert a pipe on attributes field")); return FALSE; Loading Loading
src/Service/BlockClassHelperService.php +5 −5 Original line number Diff line number Diff line Loading @@ -408,7 +408,7 @@ class BlockClassHelperService { if (preg_match('/[\'^£$%&*()}{@#~?><>,|=+¬]/', $classes)) { $form_state->setErrorByName('third_party_settings[block_class][classes]', $this->t("In class is allowed only letters, numbers, hyphen and underline")); $form_state->setErrorByName('third_party_settings][block_class][classes', $this->t("In class is allowed only letters, numbers, hyphen and underline")); return FALSE; Loading @@ -432,7 +432,7 @@ class BlockClassHelperService { if ($pipe_found === FALSE) { $form_state->setErrorByName('third_party_settings[block_class][attributes]', $this->t("You need to insert a pipe on attributes field")); $form_state->setErrorByName('third_party_settings][block_class][attributes', $this->t("You need to insert a pipe on attributes field")); return FALSE; Loading @@ -441,7 +441,7 @@ class BlockClassHelperService { // Prevent attribute id. if (str_contains($attributes, 'id|')) { $form_state->setErrorByName('third_party_settings[block_class][attributes]', $this->t("You can't the attribute id")); $form_state->setErrorByName('third_party_settings][block_class][attributes', $this->t("You can't the attribute id")); return FALSE; Loading @@ -450,7 +450,7 @@ class BlockClassHelperService { // Prevent attribute class. if (str_contains($attributes, 'class|')) { $form_state->setErrorByName('third_party_settings[block_class][attributes]', $this->t("You can't use class. Use the field class instead")); $form_state->setErrorByName('third_party_settings][block_class][attributes', $this->t("You can't use class. Use the field class instead")); return FALSE; Loading @@ -467,7 +467,7 @@ class BlockClassHelperService { if (!str_contains($attribute, '|')) { $form_state->setErrorByName('third_party_settings[block_class][attributes]', $this->t("You need to insert a pipe on attributes field")); $form_state->setErrorByName('third_party_settings][block_class][attributes', $this->t("You need to insert a pipe on attributes field")); return FALSE; Loading