private function replaceThemeInsertTag($tagType, $themeTag)
    {
        $this->framework->initialize();
        switch ($tagType) {
            // get article content by theme helper tag
            case 'content':
                /** @var ArticleModel $adapter */
                $adapter = $this->framework->getAdapter(ArticleModel::class);
                if (null === ($article = $adapter->findOneBy('pdir_th_tag', $themeTag))) {
                    return '';
                }
                return $this->generateArticleReplacement($article);
                break;
        }
        return false;
    }
private function replaceThemeInsertTag($tagType, $themeTag)
    {
        $this->framework->initialize();
        switch ($tagType) {
            // get article content by theme helper tag
            case 'content':
                /** @var ArticleModel $adapter */
                $adapter = $this->framework->getAdapter(ArticleModel::class);
                if (null === ($article = $adapter->findOneBy('pdir_th_tag', $themeTag))) {
                    return '';
                }
                return $this->generateArticleReplacement($article);
                break;
        }
        return false;
    }
private function replaceThemeInsertTag ( $ tagType , $ themeTag ) { $ this -> framework -> initialize ( ) ; switch ( $ tagType ) { // get article content by theme helper tag case 'content' : /** @var ArticleModel $adapter */ $ adapter = $ this -> framework -> getAdapter ( ArticleModel :: class ) ; if ( null === ( $ article = $ adapter -> findOneBy ( 'pdir_th_tag' , $ themeTag ) ) ) { return '' ; } return $ this -> generateArticleReplacement ( $ article ) ; break ; } return false ; }
Replaces an event-related insert tag.

@param string $tagType
@param string $themeTag

@return string
Replaces an event - related insert tag .