Apple_Exporter\Components\Image::node_matches PHP Method

node_matches() public static method

Look for node matches for this component.
public static node_matches ( DomNode $node ) : mixed
$node DomNode
return mixed
    public static function node_matches($node)
    {
        // Is this an image node?
        if (('img' == $node->nodeName || 'figure' == $node->nodeName) && self::remote_file_exists($node)) {
            return $node;
        }
        return null;
    }