public function MetaTags(&$tags)
    {
        $MetaMarkup = array();
        $owner = $this->owner;
        $tagTypes = array(
            'TagTitle',
            'MetaTagCharset',
            'MetaTagGenerator',
            'MetaTagDescription',
            'MetaTagRobots',
            'MetaTagResponsive',
            'MetaTagTwitter',
            'SchemaTagWebsite',
            'SchemaTagBreadcrumbs',
            'SchemaTagContactPoints',
            'SchemaTagLocalBusiness'
        );

        foreach ($tagTypes as $tagType) {
            if ($owner->{$tagType}) {
                $MetaMarkup[] = $owner->{$tagType};
            }
        }

        if(Permission::check('CMS_ACCESS_CMSMain')
        && in_array('CMSPreviewable', class_implements($owner))
        && !$owner instanceof ErrorPage
        && $owner->ID > 0
        ) {
            $MetaMarkup[] = MetaHelper::MetaTag('x-page-id', $owner->ID);
            $MetaMarkup[] = MetaHelper::MetaTag('x-cms-edit-link', $owner->CMSEditLink());
            Requirements::customScript(file_get_contents(BASE_PATH.'/'.BETTERMETA_DIR.'/js/cmseditshortcut.js'));
        }

        $tags = implode("\n", $MetaMarkup);
    }