Apple_Exporter\Components\Embed_Web_Video::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 node valid for further processing?
        if (self::is_embed_web_video($node, self::YOUTUBE_MATCH) || self::is_embed_web_video($node, self::VIMEO_MATCH)) {
            return $node;
        }
        return null;
    }