return MigrateSourceInterface::NOT_COUNTABLE;
} // Return the cached count if we are caching counts and a refresh is not
// requested.
if ($this->cacheCounts && !
$refresh) { $cache_object =
$this->
getCache()->
get($this->cacheKey, 'cache'
);
if (is_object($cache_object)) { return $cache_object->data;
} } $count =
$this->
doCount();
// Update the cache if we are caching counts.
if ($this->cacheCounts
) { $this->
getCache()->
set($this->cacheKey,
$count);
} return $count;
} /**
* Gets the cache object.
*
* @return \Drupal\Core\Cache\CacheBackendInterface
* The cache object.
*/