Skip to content
Snippets Groups Projects
Commit 06516996 authored by Kristof De Jaeger's avatar Kristof De Jaeger
Browse files

Issue #3472874 by mohammad-fayoumi, swentel: Errors and warnings in Display...

Issue #3472874 by mohammad-fayoumi, swentel: Errors and warnings in Display Suite when managing taxonomy display with empty config
parent cea5df94
No related branches found
No related tags found
No related merge requests found
Pipeline #379715 passed with warnings
......@@ -900,6 +900,11 @@ function _ds_field_ui_table_layouts($entity_type, $bundle, $view_mode, array &$f
$entity_type_info = \Drupal::entityTypeManager()->getDefinition($entity_type);
foreach ($entity_displays as $name) {
$row = \Drupal::config($name)->get();
if (empty($row) || empty($row['mode']) || empty($row['targetEntityType']) || empty($row['bundle'])) {
continue;
}
if ($row['mode'] === $view_mode) {
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment