src/View/Helper/MetaHelper.php
public function article($entity)
    {
        if (!$entity->displayArticleMetaTags) {
            return '';
        }

        $attributes = [
            'article:publisher' => Configure::read('Settings.Cms.SEO.Social.facebook_url'),
            'article:tag' => '',
            'article:section' => ''
        ];

        if ($entity->displayMetaDates) {
            $attributes['article:published_time'] = ($entity->published !== null) ? $entity->published->format('c') : null;
            $attributes['article:modified_time'] = $entity->modified->format('c');
        }

        $out = '';
        foreach ($attributes as $property => $content) {
            $out .= $this->_render(self::ATTR_PROP, $property, $content);
        }

        return $out;
    }
public function article($entity)
    {
        if (!$entity->displayArticleMetaTags) {
            return '';
        }

        $attributes = [
            'article:publisher' => Configure::read('Settings.Cms.SEO.Social.facebook_url'),
            'article:tag' => '',
            'article:section' => ''
        ];

        if ($entity->displayMetaDates) {
            $attributes['article:published_time'] = ($entity->published !== null) ? $entity->published->format('c') : null;
            $attributes['article:modified_time'] = $entity->modified->format('c');
        }

        $out = '';
        foreach ($attributes as $property => $content) {
            $out .= $this->_render(self::ATTR_PROP, $property, $content);
        }

        return $out;
    }
public function article ( $ entity ) { if ( ! $ entity -> displayArticleMetaTags ) { return '' ; } $ attributes = [ 'article:publisher' => Configure :: read ( 'Settings.Cms.SEO.Social.facebook_url' ) , 'article:tag' => '' , 'article:section' => '' ] ; if ( $ entity -> displayMetaDates ) { $ attributes [ 'article:published_time' ] = ( $ entity -> published !== null ) ? $ entity -> published -> format ( 'c' ) : null ; $ attributes [ 'article:modified_time' ] = $ entity -> modified -> format ( 'c' ) ; } $ out = '' ; foreach ( $ attributes as $ property => $ content ) { $ out .= $ this -> _render ( self :: ATTR_PROP , $ property , $ content ) ; } return $ out ; }
Render all article meta tags.

@param PublishableEntity $entity The entity, e.g. Page or Post.
@return string
Render all article meta tags .