You are here

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\AMP
View 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

Namesort descending Modifiers Type Description Overrides
DrupalAMP::__construct public function Override of Lullabot\AMP\AMP