function _cms_content_sync_submit_cache in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 cms_content_sync.module \_cms_content_sync_submit_cache()
- 2.0.x cms_content_sync.module \_cms_content_sync_submit_cache()
Parameters
string $entity_type:
string $entity_uuid:
array $values:
Return value
array
3 calls to _cms_content_sync_submit_cache()
- EntityHandlerBase::push in src/
Plugin/ EntityHandlerBase.php - SimpleSitemapSyncExtend::extendPush in modules/
cms_content_sync_simple_sitemap/ src/ EventSubscriber/ SimpleSitemapSyncExtend.php - Alter the push to include the sitemap settings, if enabled for the entity type and cached by the form values. Will not support programmatically added sitemap settings, so that's not supported out of the box.
- _cms_content_sync_cache_submit_values in ./
cms_content_sync.module
File
- ./
cms_content_sync.module, line 685 - Module file for cms_content_sync.
Code
function _cms_content_sync_submit_cache($entity_type, $entity_uuid, $values = NULL) {
static $cache = [];
if (!empty($values)) {
$cache[$entity_type][$entity_uuid] = $values;
}
if (empty($cache[$entity_type][$entity_uuid])) {
return NULL;
}
return $cache[$entity_type][$entity_uuid];
}