diff --git a/origins_common/config/schema/origins_common.schema.yml b/origins_common/config/schema/origins_common.schema.yml index 4e1da8d0..ecc7e26f 100644 --- a/origins_common/config/schema/origins_common.schema.yml +++ b/origins_common/config/schema/origins_common.schema.yml @@ -10,3 +10,10 @@ field.formatter.settings.html_list_formatter: display_item_link: type: boolean label: 'Display item link' + +filter_settings.origins_media_cookie_content_blocker_embed_filter: + type: mapping + mapping: + replacement_text: + type: string + label: 'Replacement text' diff --git a/origins_common/origins_common.module b/origins_common/origins_common.module index 2317f1fb..49218eb4 100644 --- a/origins_common/origins_common.module +++ b/origins_common/origins_common.module @@ -10,9 +10,6 @@ use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Link; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Url; -use Drupal\block\Entity\Block; -use Drupal\facets\FacetInterface; -use Drupal\node\Entity\Node; /** * Implements hook_help(). diff --git a/origins_translations/src/Controller/OriginsTranslationsAdminController.php b/origins_translations/src/Controller/OriginsTranslationsAdminController.php index c2d716f2..4f7f4fe2 100644 --- a/origins_translations/src/Controller/OriginsTranslationsAdminController.php +++ b/origins_translations/src/Controller/OriginsTranslationsAdminController.php @@ -77,12 +77,12 @@ public function languages() { ], ], ], - $language['0'], + isset($language['0']) ? $language['0'] : NULL, ($language['1']) ? $this->t('True') : $this->t('False'), - $language['2'], - $language['3'], - $language['4'], - $language['5'], + isset($language['2']) ? $language['2'] : NULL, + isset($language['3']) ? $language['3'] : NULL, + isset($language['4']) ? $language['4'] : NULL, + isset($language['5']) ? $language['5'] : NULL, ]; }