commit 0cd810095c48d4f3ac1e9dea881922bce2b8d5f0 Author: beejeebus Date: Sat Jan 23 16:59:06 2016 -0500 #2655526: fix block list form not being locked. diff --git a/src/EventSubscriber/ReadOnlyFormSubscriber.php b/src/EventSubscriber/ReadOnlyFormSubscriber.php index 2f0e4fe..149c116 100644 --- a/src/EventSubscriber/ReadOnlyFormSubscriber.php +++ b/src/EventSubscriber/ReadOnlyFormSubscriber.php @@ -10,6 +10,7 @@ namespace Drupal\config_readonly\EventSubscriber; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Entity\EntityFormInterface; +use Drupal\Core\Config\Entity\ConfigEntityListBuilder; use Drupal\Core\Config\Entity\ConfigEntityInterface; use Drupal\config_readonly\ReadOnlyFormEvent; @@ -28,7 +29,7 @@ class ReadOnlyFormSubscriber implements EventSubscriberInterface { $is_config_form = $form_object instanceof ConfigFormBase || $form_object instanceof ConfigEntityListBuilder; // Check if this is the single import form. - $is_config_form = $form_object->getFormId() == 'config_single_import_form'; + $is_config_form = $is_config_form || $form_object->getFormId() == 'config_single_import_form'; // Check if the form is an EntityFormInterface and entity is a config entity. if (!$is_config_form && $form_object instanceof EntityFormInterface) {