class DrupalAMP in Accelerated Mobile Pages (AMP) 8.3
Hierarchy
- class \Drupal\amp\AMP\DrupalAMP extends \Lullabot\AMP\AMP
Expanded class hierarchy of DrupalAMP
1 file declares its use of DrupalAMP
- AMPService.php in src/
Service/ AMPService.php
File
- src/
AMP/ DrupalAMP.php, line 15
Namespace
Drupal\amp\AMPView source
class DrupalAMP extends AMP {
/**
* Override of Lullabot\AMP\AMP
*
* The DrupalParsedValidator override adds an alter hook to the rules array,
* giving us more control over what is removed or not.
*/
public function __construct() {
$this->parsed_rules = DrupalParsedValidatorRules::getSingletonParsedValidatorRules();
$this->rules = $this->parsed_rules->rules;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DrupalAMP:: |
public | function | Override of Lullabot\AMP\AMP |