Skip to content
Snippets Groups Projects
Commit 54651b4d authored by Roderik Muit's avatar Roderik Muit
Browse files

Issue #3484098 by jjchinquist, roderik: fix undefined array key.

parent 6529caaf
No related branches found
No related tags found
No related merge requests found
Pipeline #336099 passed with warnings
......@@ -172,7 +172,7 @@ class EntityReferenceCeFieldFormatter extends CustomElementsFieldFormatterBase {
public function settingsSummary() {
$target_type = $this->getFieldDefinition()->getFieldStorageDefinition()->getSetting('target_type');
$options = $this->entityDisplayRepository->getViewModeOptions($target_type);
$summary[] = $this->t('View mode: @mode', ['@mode' => $options[$this->configuration['mode']]] ?? $this->configuration['mode']);
$summary[] = $this->t('View mode: @mode', ['@mode' => $options[$this->configuration['mode']] ?? $this->configuration['mode']]);
if (!empty($this->configuration['flatten'])) {
$summary[] = $this->t('Add fields directly into current element.');
if ($this->getFieldDefinition()->getFieldStorageDefinition()->getCardinality() != 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment