You are here

public function DrupalAMP::__construct in Accelerated Mobile Pages (AMP) 8.3

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.

File

src/AMP/DrupalAMP.php, line 23

Class

DrupalAMP

Namespace

Drupal\amp\AMP

Code

public function __construct() {
  $this->parsed_rules = DrupalParsedValidatorRules::getSingletonParsedValidatorRules();
  $this->rules = $this->parsed_rules->rules;
}