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.

Parameters

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

File

./xmlsitemap.module, line 2673
xmlsitemap XML sitemap

Code

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