src/Cms/AbstractWebTemplate.php
protected function setSeoMetadata(array $metadata)
    {
        if (is_array($this->seoMetadata)) {
            $this->seoMetadata = new ArrayIterator($this->seoMetadata);
        }

        foreach ($metadata as $key => $value) {
            if (is_array($value)) {
                $value = implode(',', $value);
            }

            $this->seoMetadata[] = [
                'name'    => $key,
                'content' => (string)$value
            ];
        }

        return $this;
    }
protected function setSeoMetadata(array $metadata)
    {
        if (is_array($this->seoMetadata)) {
            $this->seoMetadata = new ArrayIterator($this->seoMetadata);
        }

        foreach ($metadata as $key => $value) {
            if (is_array($value)) {
                $value = implode(',', $value);
            }

            $this->seoMetadata[] = [
                'name'    => $key,
                'content' => (string)$value
            ];
        }

        return $this;
    }
protected function setSeoMetadata ( array $ metadata ) { if ( is_array ( $ this -> seoMetadata ) ) { $ this -> seoMetadata = new ArrayIterator ( $ this -> seoMetadata ) ; } foreach ( $ metadata as $ key => $ value ) { if ( is_array ( $ value ) ) { $ value = implode ( ',' , $ value ) ; } $ this -> seoMetadata [ ] = [ 'name' => $ key , 'content' => ( string ) $ value ] ; } return $ this ; }
Set additional SEO metadata.

@param  array $metadata Map of metadata keys and values.
@return self
Set additional SEO metadata .