SilverStripe\CMS\Model\SiteTree::MetaComponents
Return attributes for various meta tags, plus a title tag, in a keyed array.
Array structure corresponds to arguments for HTML::create_tag(). Example: $tags['description'] = [ // html tag type, if omitted defaults to 'meta' 'tag' => 'meta', // attributes of html tag 'attributes' => [ 'name' => 'description', 'content' => $this->customMetaDescription(), ], // content of html tag. (True meta tags don't contain content) 'content' => null ];
Signature
public function MetaComponents()
Returns
- array