BeforeStdWrapContentStoredInCacheEvent

final class \TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent

Listeners to this Event are able to modify the final stdWrap content and corresponding cache tags, before being stored in cache.

Additionally, listeners are also able to change the cache key to be used as well as the lifetime. Therefore, the whole configuration is available.

Table of Contents

Methods

__construct()  : mixed
getConfiguration()  : array
getContent()  : string|null
getContentObjectRenderer()  : ContentObjectRenderer
getKey()  : string
getLifetime()  : int|null
getTags()  : array
setContent()  : void
setKey()  : void
setLifetime()  : void
setTags()  : void

Methods

__construct()

public __construct(string|null $content, array $tags, string $key, int|null $lifetime, array $configuration, ContentObjectRenderer $contentObjectRenderer) : mixed

Parameters

$content : string|null
$tags : array
$key : string
$lifetime : int|null
$configuration : array
$contentObjectRenderer : ContentObjectRenderer

getConfiguration()

public getConfiguration() : array

Return values

array

getContent()

public getContent() : string|null

Return values

string|null

getKey()

public getKey() : string

Return values

string

getLifetime()

public getLifetime() : int|null

Return values

int|null

getTags()

public getTags() : array

Return values

array

setContent()

public setContent(string $content) : void

Parameters

$content : string

setKey()

public setKey(string $key) : void

Parameters

$key : string

setLifetime()

public setLifetime(int|null $lifetime) : void

Parameters

$lifetime : int|null

setTags()

public setTags(array $tags) : void

Parameters

$tags : array
On this page