You are here

function _amp_create_amp_converter in Accelerated Mobile Pages (AMP) 7

Use AMP class from library for conversion of text to AMP HTML.

Return value

AMP

3 calls to _amp_create_amp_converter()
amp_deliver_html_page in ./amp.module
Processes the Full Page HTML through the AMP PHP Library if enabled on the AMP Configuration
amp_library_test in ./amp.module
Test the AMP Library
_amp_convert_markup_to_amp in ./amp.module
Use AMP class from library for conversion of text to AMP HTML.

File

./amp.module, line 1250

Code

function _amp_create_amp_converter() {
  $amp = new AMP();
  drupal_alter('amp_converter', $amp);
  return $amp;
}