Simple sitemap field issue for content type form managed display

Created on 12 September 2023, over 1 year ago
Updated 13 September 2024, 3 months ago

When I change form managed display setting of content type or even saving setting form then simple_sitemap field appears as a difference in the configuration sync page for config "core.entity_form_display.node.page.default". I saw one hook that adds a simple_sitemap field to the content type. Please see the hook below and attached the accompanying photos for more information.

/**
* Implements hook_entity_extra_field_info().
*/
function simple_sitemap_entity_extra_field_info() {
$extra = [];

/** @var \Drupal\simple_sitemap\Entity\EntityHelper $entity_helper */
$entity_helper = \Drupal::service('simple_sitemap.entity_helper');

/** @var \Drupal\simple_sitemap\Manager\EntityManager $entity_manager */
$entity_manager = \Drupal::service('simple_sitemap.entity_manager');

foreach ($entity_helper->getSupportedEntityTypes() as $entity_type_id => $entity_type) {
if ($entity_type->get('field_ui_base_route') && $entity_manager->entityTypeIsEnabled($entity_type_id)) {

foreach ($entity_helper->getBundleInfo($entity_type_id) as $bundle_name => $bundle_info) {
$extra[$entity_type_id][$bundle_name]['form']['simple_sitemap'] = [
'label' => t('Simple XML Sitemap'),
'description' => t('Simple XML Sitemap settings'),
'weight' => 10,
];
}
}
}
return $extra;
}

🐛 Bug report
Status

Closed: cannot reproduce

Version

4.0

Component

Code

Created by

🇮🇳India ashetkar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024