BeforeStdWrapContentStoredInCacheEvent

FinalYes

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<string|int, mixed>
getContent()  : string|null
getContentObjectRenderer()  : ContentObjectRenderer
getKey()  : string
getLifetime()  : int|null
getTags()  : array<string|int, mixed>
setContent()  : void
setKey()  : void
setLifetime()  : void
setTags()  : void

Methods

__construct()

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

getConfiguration()

public getConfiguration() : array<string|int, mixed>
Return values
array<string|int, mixed>

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<string|int, mixed>
Return values
array<string|int, mixed>

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<string|int, mixed> $tags) : void
Parameters
$tags : array<string|int, mixed>

        
On this page

Search results