Class: MetaManagerImpl
Defined in: packages/core/src/meta/MetaManagerImpl.ts:11
Default implementation of the MetaManager interface.
Extends
Constructors
Constructor
new MetaManagerImpl():
MetaManagerImpl
Defined in: packages/core/src/meta/MetaManagerImpl.ts:24
Initializes the meta page attributes manager.
Returns
MetaManagerImpl
Overrides
Properties
_link
protected_link:Map<string,MetaManagerRecord<"href">>
Defined in: packages/core/src/meta/MetaManagerImpl.ts:15
_metaName
protected_metaName:Map<string,MetaManagerRecord<"content">>
Defined in: packages/core/src/meta/MetaManagerImpl.ts:13
_metaProperty
protected_metaProperty:Map<string,MetaManagerRecord<"content">>
Defined in: packages/core/src/meta/MetaManagerImpl.ts:14
_title
protected_title:string
Defined in: packages/core/src/meta/MetaManagerImpl.ts:12
Accessors
$dependencies
Get Signature
get
static$dependencies():never[]
Defined in: packages/core/src/meta/MetaManagerImpl.ts:17
Returns
never[]
Methods
clearMetaAttributes()
clearMetaAttributes():
void
Defined in: packages/core/src/meta/MetaManagerImpl.ts:166
Resets the stored meta names, properties and links.
Returns
void
Overrides
MetaManager.clearMetaAttributes
getLink()
getLink(
relation):MetaManagerRecord<"href">
Defined in: packages/core/src/meta/MetaManagerImpl.ts:145
Return the reference to the specified related linked document. The method returns an empty string for missing meta information (to make the returned value React-friendly).
Parameters
relation
string
The relation of the link target to the current page.
Returns
MetaManagerRecord<"href">
The reference to the location of the related document, e.g. a URL.
Overrides
getLinks()
getLinks():
string[]
Defined in: packages/core/src/meta/MetaManagerImpl.ts:152
Returns the relations of the currently set related documents linked to the current page.
Returns
string[]
Overrides
getLinksIterator()
getLinksIterator():
IterableIterator<[string,MetaManagerRecord<"href">]>
Defined in: packages/core/src/meta/MetaManagerImpl.ts:159
Return [key, value] pairs of currently set links.
Returns
IterableIterator<[string, MetaManagerRecord<"href">]>
[key, value] pairs of currently set links.
Overrides
getMetaName()
getMetaName(
name):MetaManagerRecord<"content">
Defined in: packages/core/src/meta/MetaManagerImpl.ts:76
Returns the value of the specified named meta information property. The method returns an empty string for missing meta information (to make the returned value React-friendly).
Parameters
name
string
The name of the named meta information property.
Returns
MetaManagerRecord<"content">
The value of the generic meta information, or an empty string.
Overrides
getMetaNames()
getMetaNames():
string[]
Defined in: packages/core/src/meta/MetaManagerImpl.ts:83
Returns the names of the currently specified named meta information properties.
Returns
string[]
The names of the currently specified named meta information properties.
Overrides
getMetaNamesIterator()
getMetaNamesIterator():
IterableIterator<[string,MetaManagerRecord<"content">]>
Defined in: packages/core/src/meta/MetaManagerImpl.ts:90
Return [key, value] pairs of named meta information.
Returns
IterableIterator<[string, MetaManagerRecord<"content">]>
[key, value] pairs of named meta information.
Overrides
MetaManager.getMetaNamesIterator
getMetaProperties()
getMetaProperties():
string[]
Defined in: packages/core/src/meta/MetaManagerImpl.ts:120
Returns the names of the currently specified specialized meta information properties.
Returns
string[]
The names of the currently specified specialized meta information properties.
Overrides
getMetaPropertiesIterator()
getMetaPropertiesIterator():
IterableIterator<[string,MetaManagerRecord<"content">]>
Defined in: packages/core/src/meta/MetaManagerImpl.ts:127
Return [key, value] pairs of meta information properties.
Returns
IterableIterator<[string, MetaManagerRecord<"content">]>
[key, value] pairs of meta information properties.
Overrides
MetaManager.getMetaPropertiesIterator
getMetaProperty()
getMetaProperty(
property):MetaManagerRecord<"content">
Defined in: packages/core/src/meta/MetaManagerImpl.ts:112
Returns the value of the specified specialized meta information property. The method returns an empty string for missing meta information (to make the returned value React-friendly).
Parameters
property
string
Returns
MetaManagerRecord<"content">
The value of the specified meta information, or an empty string.
Overrides
getTitle()
getTitle():
string
Defined in: packages/core/src/meta/MetaManagerImpl.ts:60
Returns the page title. The method returns an empty string if no page title has been set yet.
Note that the page title is cached internally by the meta manager and may therefore differ from the current document title if it has been modified by a 3rd party code.
Returns
string
The current page title.
Overrides
setLink()
setLink(
relation,href,attr?):this
Defined in: packages/core/src/meta/MetaManagerImpl.ts:136
Sets the specified specialized link information.
Parameters
relation
string
The relation of the link target to the current page.
href
The reference to the location of the related document, e.g. a URL.
attr?
Returns
this
Parram
attr Additional optional link attributes.
Overrides
setMetaName()
setMetaName(
name,content,attr?):this
Defined in: packages/core/src/meta/MetaManagerImpl.ts:67
Set the specified named meta information property.
Parameters
name
string
Meta information property name, for example
keywords.
content
The meta information content.
attr?
Returns
this
Parram
attr Additional optional meta attributes.
Overrides
setMetaProperty()
setMetaProperty(
property,content,attr?):this
Defined in: packages/core/src/meta/MetaManagerImpl.ts:99
Sets the specified specialized meta information property.
Parameters
property
string
The value of the meta information property.
content
attr?
Returns
this
Parram
attr Additional optional meta attributes.
Overrides
setTitle()
setTitle(
title):this
Defined in: packages/core/src/meta/MetaManagerImpl.ts:51
Sets the page title.
Parameters
title
string
The new page title.
Returns
this