summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjigish.chauhan2019-01-09 10:30:37 (GMT)
committerRenato Gonçalves H2019-01-09 10:30:37 (GMT)
commit1f104baa9e1bf4327f293dacd125c58a34981103 (patch)
tree9bec4ab6224060617c12af18585f9a1925b191bc
parentebe9f104cb3821413a2473a30ee34ecba80e2afb (diff)
Issue #3018544 by jigish.addweb, bobhacker, RenatoG: Notice : Undefined index: #entity_type dans Drupal\colorbox\Plugin\Field\FieldFormatter\ColorboxFormatter->settingsForm()HEAD8.x-1.x
-rw-r--r--src/Plugin/Field/FieldFormatter/ColorboxFormatter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Plugin/Field/FieldFormatter/ColorboxFormatter.php b/src/Plugin/Field/FieldFormatter/ColorboxFormatter.php
index 13c4103..a00e250 100644
--- a/src/Plugin/Field/FieldFormatter/ColorboxFormatter.php
+++ b/src/Plugin/Field/FieldFormatter/ColorboxFormatter.php
@@ -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'];
}