private function MobileDetectStatusBlock::internalCacheStatus in Mobile Detect 8.2
1 call to MobileDetectStatusBlock::internalCacheStatus()
- MobileDetectStatusBlock::build in src/
Plugin/ Block/ MobileDetectStatusBlock.php - Builds and returns the renderable array for this block plugin.
File
- src/
Plugin/ Block/ MobileDetectStatusBlock.php, line 34
Class
- MobileDetectStatusBlock
- Provides a 'Mobile Detect' status block for dev purposes.
Namespace
Drupal\mobile_detect\Plugin\BlockCode
private function internalCacheStatus() {
$enabled = false;
$moduleHandler = \Drupal::service('module_handler');
if ($moduleHandler
->moduleExists('cache_page')) {
$enabled = true;
}
return $enabled;
}