SchemaorgPluginTrait

Trait for component schemaorg plugins.

since

5.0.0

package

Joomla CMS

Methods

addSchemaType

Add a new option to schemaType list field in schema form

addSchemaType(\Joomla\CMS\Event\Plugin\System\Schemaorg\PrepareFormEvent event) : 
since

5.0.0

Arguments

event

PrepareFormEvent

Response

void

checkAllowedAndForbiddenlist

Check if the context is listed in the allowed or forbidden lists and return the result.

checkAllowedAndForbiddenlist( context) : 
since

5.0.0

Arguments

context

stringContext to check

Response

bool

convertToArray

To create an array from repeatable text field data

convertToArray(mixed||string|int schema, mixed||string|int repeatableFields) : mixed||string|int
since

5.0.0

Arguments

schema

array<string|int, mixed>Schema form

repeatableFields

array<string|int, mixed>Names of all the Repeatable fields

Response

array<string|int, mixed>

getSubscribedEvents

Returns an array of events this subscriber will listen to.

getSubscribedEvents() : mixed||string|int
static
since

5.0.0

Response

array<string|int, mixed>

isSupported

Check if the current plugin should execute schemaorg related activities

isSupported( context) : 
since

5.0.0

Arguments

context

string

Response

bool

onSchemaPrepareForm

Add a new option to the schema type in the item editing page

onSchemaPrepareForm(\Joomla\CMS\Event\Plugin\System\Schemaorg\PrepareFormEvent event) : 
since

5.0.0

Arguments

event

PrepareFormEventThe form to be altered.

Response

void