Skip to content
Snippets Groups Projects

Issue-3473888: Fixed configuration page issue.

1 unresolved thread
3 files
+ 15
8
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -48,9 +48,12 @@ class MarkItViewsData extends EntityViewsData {
@@ -48,9 +48,12 @@ class MarkItViewsData extends EntityViewsData {
$configuration = $this->configFactory->get('markit.settings');
$configuration = $this->configFactory->get('markit.settings');
$target_entity_bundles = $configuration->get('target_entities');
$target_entity_bundles = $configuration->get('target_entities');
$target_entity_types = [];
$target_entity_types = [];
foreach ($target_entity_bundles as $target_entity_bundle) {
$is_arr_or_obj = is_array($target_entity_bundles) || is_object($target_entity_bundles);
Please register or sign in to reply
list($entity_type,) = explode(':', $target_entity_bundle);
if ($is_arr_or_obj) {
$target_entity_types[$entity_type] = $entity_type;
foreach ($target_entity_bundles as $target_entity_bundle) {
 
list($entity_type,) = explode(':', $target_entity_bundle);
 
$target_entity_types[$entity_type] = $entity_type;
 
}
}
}
// Loop over the entity_types and build proper relationships.
// Loop over the entity_types and build proper relationships.
Loading