code/SEO_Metadata_SiteTree_DataExtension.php
public function Metadata()
    {
        // variables
        $config = SiteConfig::current_site_config();
        // begin SEO
        $metadata = PHP_EOL . $this->owner->MarkupComment('SEO');
        // register extension update hook
        $this->owner->extend('updateMetadata', $config, $this->owner, $metadata);
        // end
        $metadata .= $this->owner->MarkupComment('END SEO');
        // return
        return $metadata;
    }
public function Metadata()
    {
        // variables
        $config = SiteConfig::current_site_config();
        // begin SEO
        $metadata = PHP_EOL . $this->owner->MarkupComment('SEO');
        // register extension update hook
        $this->owner->extend('updateMetadata', $config, $this->owner, $metadata);
        // end
        $metadata .= $this->owner->MarkupComment('END SEO');
        // return
        return $metadata;
    }
public function Metadata ( ) { // variables $ config = SiteConfig :: current_site_config ( ) ; // begin SEO $ metadata = PHP_EOL . $ this -> owner -> MarkupComment ( 'SEO' ) ; // register extension update hook $ this -> owner -> extend ( 'updateMetadata' , $ config , $ this -> owner , $ metadata ) ; // end $ metadata .= $ this -> owner -> MarkupComment ( 'END SEO' ) ; // return return $ metadata ; }
Main function to format & output metadata as an HTML string.

Use the `updateMetadata($config, $owner, $metadata)` update hook when extending `DataExtension`s.

@return string
Main function to format & output metadata as an HTML string .