tp TouchPointWP jsonLd - TenthPres/TouchPoint-WP GitHub Wiki
tp\TouchPointWP\jsonLd
Some items should be indexable by search engines using standards such as JSON-LD. This trait provides the base variables and interface for standard generation of this markup.
- Full name:
\tp\TouchPointWP\jsonLd
Methods
getPermalink
Returns the permalink corresponding to the JSON-LD object.
public getPermalink(): string
toJsonLD
Return an object that turns into JSON-LD as an event, compliant with schema.org. Return null if the object can't be printed to jsonLd for some reason (e.g. required fields are missing).
public toJsonLD(): ?object
- This method is abstract.
printJsonLd
Print the full JSON-LD info, including script tags.
public static printJsonLd(): void
- This method is static.