public static function DrupalParsedValidatorRules::getSingletonParsedValidatorRules in Accelerated Mobile Pages (AMP) 8.3
1 call to DrupalParsedValidatorRules::getSingletonParsedValidatorRules()
- DrupalAMP::__construct in src/
AMP/ DrupalAMP.php - Override of Lullabot\AMP\AMP
File
- src/
AMP/ DrupalParsedValidatorRules.php, line 18
Class
- DrupalParsedValidatorRules
- Drupal override of Lullabot\ParsedValidatorRules.
Namespace
Drupal\amp\AMPCode
public static function getSingletonParsedValidatorRules() {
if (!empty(self::$parsed_validator_rules_singleton)) {
return self::$parsed_validator_rules_singleton;
}
else {
$rules = self::updatedRules();
self::$parsed_validator_rules_singleton = new self($rules);
return self::$parsed_validator_rules_singleton;
}
}