protected function AcquiaPurgeProcessorAjax::isUiVisible in Acquia Purge 7
Determine if the interactive UI should be visible or not.
When the interactive UI is not presented to the end-user, processing of the queue via AJAX still happens. It happens silently in the background for as long as the administrative user that triggered it, has tabs to Drupal open.
Return value
bool Either TRUE or FALSE.
1 call to AcquiaPurgeProcessorAjax::isUiVisible()
- AcquiaPurgeProcessorAjax::initializeClientSideProcessor in lib/
processor/ AcquiaPurgeProcessorAjax.php - Load the static assets to load and show the client side processor.
File
- lib/
processor/ AcquiaPurgeProcessorAjax.php, line 205 - Contains AcquiaPurgeProcessorAjax.
Class
- AcquiaPurgeProcessorAjax
- Process the queue using a AJAX client-side UI.
Code
protected function isUiVisible() {
// Always hide the processor in case this is requested.
if (_acquia_purge_variable('acquia_purge_silentmode')) {
return FALSE;
}
// Only users with the 'purge on-screen' permission will actually see the
// UI, since it could be confusing for some users.
return user_access('purge on-screen');
}