Skip to content
Snippets Groups Projects
Commit 12ac224b authored by Daniel Pernold's avatar Daniel Pernold
Browse files

Added check for $config is an array

parent 9c9c7118
No related tags found
No related merge requests found
Pipeline #371243 passed with warnings
......@@ -164,7 +164,7 @@ class ReadOnlyFormSubscriber implements EventSubscriberInterface {
protected function getConfigTargetNames(array $form): array {
$config_targets = [];
foreach ($form as $name => $config) {
if (isset($config['#config_target'])) {
if (is_array($config) && isset($config['#config_target'])) {
if ($config['#config_target'] instanceof ConfigTarget) {
$config_targets[] = $config['#config_target']->configName;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment