Content

Utility class to fire onContentPrepare for non-article based content.

abstract
since

1.5

package

Joomla CMS

Methods

months

Returns an array of months.

months(\Joomla\Registry\Registry state) : mixed||string|int
static
since

3.9.0

Arguments

state

RegistryThe state object.

Response

array<string|int, mixed>

prepare

Fire onContentPrepare for content that isn't part of an article.

prepare( text, mixed||string|int params = null,  context = 'text') : 
static
since

1.5

Arguments

text

stringThe content to be transformed.

params

array<string|int, mixed>The content params.

context

stringThe context of the content to be transformed.

Response

stringThe content after transformation.