You are here

function xmlsitemap_link_bundle_check_enabled in XML sitemap 8

Same name and namespace in other branches
  1. 2.x xmlsitemap.module \xmlsitemap_link_bundle_check_enabled()

Link bundle check enabled.

Check if a bundle is enabled and config object xmlsitemap.settings object exists.


string $entity_type_id: Entity type id.

string $bundle_id: Bundle id.

Return value

bool Returns TRUE if bundle is enabled, FALSE otherwise.

7 calls to xmlsitemap_link_bundle_check_enabled()
XmlSitemapEntitiesSettingsForm::buildForm in src/Form/XmlSitemapEntitiesSettingsForm.php
Form constructor.
XmlSitemapEntitiesSettingsForm::submitForm in src/Form/XmlSitemapEntitiesSettingsForm.php
Form submission handler.
xmlsitemap_add_form_entity_summary in ./xmlsitemap.module
Add a table summary for an entity and its bundles.
xmlsitemap_entity_insert in ./xmlsitemap.module
Implements hook_entity_insert().
xmlsitemap_entity_update in ./xmlsitemap.module
Implements hook_entity_update().

... See full list


./xmlsitemap.module, line 2673
xmlsitemap XML sitemap


function xmlsitemap_link_bundle_check_enabled($entity_type_id, $bundle_id) {
  return !\Drupal::config("xmlsitemap.settings.{$entity_type_id}.{$bundle_id}")