public function AMPService::isDevPage in Accelerated Mobile Pages (AMP) 8.3
Helper to see if we are on a development page.
1 call to AMPService::isDevPage()
- AMPService::devMessage in src/
Service/ AMPService.php - Display a development message.
File
- src/
Service/ AMPService.php, line 171
Class
- AMPService
- Class AMPService.
Namespace
Drupal\amp\ServiceCode
public function isDevPage() {
$current_page = \Drupal::request()
->getQueryString();
return !empty(stristr($current_page, 'debug')) || !empty(stristr($current_page, 'development'));
}