PHP Class Apple_Exporter\Components\Image

Since: 0.2.0
Inheritance: extends Component
Datei anzeigen Open project: alleyinteractive/apple-news Class Usage Examples

Public Methods

Method Description
node_matches ( DomNode $node ) : mixed Look for node matches for this component.

Protected Methods

Method Description
build ( string $text ) Build the component.

Private Methods

Method Description
find_caption_alignment ( ) : string Find the caption alignment to use.
group_component ( string $caption ) If the image has a caption, we have to also show a caption component.
register_anchor_layout ( ) Register the anchor layout.
register_non_anchor_layout ( ) Register the non-anchor layout.

Method Details

build() protected method

Build the component.
protected build ( string $text )
$text string

node_matches() public static method

Look for node matches for this component.
public static node_matches ( DomNode $node ) : mixed
$node DomNode
return mixed