Skip to content
Snippets Groups Projects

Issue #3514018 by grimreaper: Code cleanup

10 files
+ 26
160
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -24,15 +24,14 @@ class FormBlockFormAlter {
* The form state.
*/
public function blockFormAlter(array &$form, FormStateInterface $formState): void {
/** @var \Drupal\block\BlockForm $form_object */
$form_object = $formState->getFormObject();
/** @var \Drupal\block\BlockInterface $block */
$block = $form_object->getEntity();
if (!($form_object instanceof EntityFormInterface)) {
return;
}
/** @var \Drupal\block\BlockInterface $block */
$block = $form_object->getEntity();
$theme = $block->getTheme();
if ($theme == NULL) {
return;
Loading