FluidTYPO3\Vhs\ViewHelpers\Media\YoutubeViewHelper::renderChildTag PHP Méthode

renderChildTag() private méthode

Renders the provided tag and its attributes
private renderChildTag ( string $tagName, array $attributes = [], boolean $forceClosingTag = false ) : string
$tagName string
$attributes array
$forceClosingTag boolean
Résultat string
    private function renderChildTag($tagName, $attributes = [], $forceClosingTag = false)
    {
        $tagBuilder = clone $this->tag;
        $tagBuilder->reset();
        $tagBuilder->setTagName($tagName);
        $tagBuilder->addAttributes($attributes);
        $tagBuilder->forceClosingTag($forceClosingTag);
        $childTag = $tagBuilder->render();
        unset($tagBuilder);
        return $childTag;
    }