You are here

public function AMPService::createAMPConverter in Accelerated Mobile Pages (AMP) 8

Same name and namespace in other branches
  1. 8.3 src/Service/AMPService.php \Drupal\amp\Service\AMPService::createAMPConverter()
  2. 8.2 src/Service/AMPService.php \Drupal\amp\Service\AMPService::createAMPConverter()

This is your starting point. Its cheap to create AMP objects now. Just create a new one every time you're asked for it.

Return value

AMP

File

src/Service/AMPService.php, line 53
Contains \Drupal\amp\AMPService.

Class

AMPService
Class AMPService.

Namespace

Drupal\amp\Service

Code

public function createAMPConverter() {
  return new AMP();
}