Method |
Description |
|
addChild ( Element $child ) |
Adds new child elements to this InstantArticle |
|
addMetaProperty ( string $property_name, string $property_content ) |
Adds a meta property for the of Instant Article. |
|
create ( ) : InstantArticle |
Factory method |
|
disableAutomaticAdPlacement ( ) |
Use the strategy of manual ad placement |
|
disableRTL ( ) |
Updates article to use LTR orientation (default), disabling RTL. |
|
enableAutomaticAdPlacement ( ) |
Use the strategy of auto ad placement |
|
enableRTL ( ) |
Updates article to use RTL orientation. |
|
getCanonicalURL ( ) : string |
|
|
getChildren ( ) : array |
|
|
getContainerChildren ( ) |
|
|
getFooter ( ) : Facebook\InstantArticles\Elements\Footer |
|
|
getHeader ( ) : Facebook\InstantArticles\Elements\Header |
|
|
isValid ( ) |
|
|
render ( $doctype = '<!doctype html>', $format = false ) |
|
|
toDOMElement ( $document = null ) |
|
|
unshiftChild ( $child ) |
Adds new child elements to the front of this InstantArticle |
|
withCanonicalURL ( string $url ) |
Sets the canonical URL for the Instant Article. It is REQUIRED. |
|
withCharset ( string $charset ) |
Sets the charset for the Instant Article. utf-8 by default. |
|
withFooter ( Facebook\InstantArticles\Elements\Footer $footer ) |
Sets the footer content to this InstantArticle |
|
withHeader ( Facebook\InstantArticles\Elements\Header $header ) |
Sets the header content to this InstantArticle |
|
withStyle ( string $style ) |
Sets the style to be applied to this Instant Article |
|