Commit 1f104baa authored by jigish.addweb's avatar jigish.addweb Committed by RenatoG

Issue #3018544 by jigish.addweb, bobhacker, RenatoG: Notice : Undefined index:...

Issue #3018544 by jigish.addweb, bobhacker, RenatoG: Notice : Undefined index: #entity_type dans Drupal\colorbox\Plugin\Field\FieldFormatter\ColorboxFormatter->settingsForm()
parent ebe9f104
......@@ -194,7 +194,7 @@ class ColorboxFormatter extends ImageFormatterBase implements ContainerFactoryPl
$entity_type = '';
if (!empty($form['#entity_type'])) {
if (isset($form['#entity_type'] ) && !empty($form['#entity_type'])) {
$entity_type = $form['#entity_type'];
}
......@@ -252,7 +252,7 @@ class ColorboxFormatter extends ImageFormatterBase implements ContainerFactoryPl
$entity_type = '';
if (!empty($form['#entity_type'])) {
if (isset($form['#entity_type']) && !empty($form['#entity_type'])) {
$entity_type = $form['#entity_type'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment