src/Html2Pdf.php
protected function getTagObject($tagName)
    {
        if (!$this->extensionsLoaded) {
            $this->loadExtensions();
        }

        if (!array_key_exists($tagName, $this->tagObjects)) {
            return null;
        }

        $tagObject = $this->tagObjects[$tagName];
        $tagObject->setParsingCssObject($this->parsingCss);
        $tagObject->setCssConverterObject($this->cssConverter);
        $tagObject->setPdfObject($this->pdf);
        if (!is_null($this->debug)) {
            $tagObject->setDebugObject($this->debug);
        }

        return $tagObject;
    }
protected function getTagObject($tagName)
    {
        if (!$this->extensionsLoaded) {
            $this->loadExtensions();
        }

        if (!array_key_exists($tagName, $this->tagObjects)) {
            return null;
        }

        $tagObject = $this->tagObjects[$tagName];
        $tagObject->setParsingCssObject($this->parsingCss);
        $tagObject->setCssConverterObject($this->cssConverter);
        $tagObject->setPdfObject($this->pdf);
        if (!is_null($this->debug)) {
            $tagObject->setDebugObject($this->debug);
        }

        return $tagObject;
    }
protected function getTagObject ( $ tagName ) { if ( ! $ this -> extensionsLoaded ) { $ this -> loadExtensions ( ) ; } if ( ! array_key_exists ( $ tagName , $ this -> tagObjects ) ) { return null ; } $ tagObject = $ this -> tagObjects [ $ tagName ] ; $ tagObject -> setParsingCssObject ( $ this -> parsingCss ) ; $ tagObject -> setCssConverterObject ( $ this -> cssConverter ) ; $ tagObject -> setPdfObject ( $ this -> pdf ) ; if ( ! is_null ( $ this -> debug ) ) { $ tagObject -> setDebugObject ( $ this -> debug ) ; } return $ tagObject ; }
get the tag object from a tag name

@param string $tagName tag name to load

@return TagInterface|null
get the tag object from a tag name