$text, 'node' => $node ] ); } protected static function fromSelSerImpl( string $text, Element $node, DataParsoid $dataParsoid, Env $env, array $opts ): ?ExtLinkText { $stx = $dataParsoid->stx ?? ''; if ( DOMUtils::hasRel( $node, 'mw:ExtLink' ) && !in_array( $stx, [ 'simple', 'piped' ], true ) ) { $rel = DOMCompat::getAttribute( $node, 'rel' ); return new ExtLinkText( $text, $node, $env->getSiteConfig(), $rel ); } return null; } }