Class

eZ\Publish\Core\MVC\Symfony\Event\ContentCacheClearEvent

class ContentCacheClearEvent extends Event

Class ContentCacheClearEvent.

Methods

__construct(ContentInfo $contentInfo)

ContentInfo getContentInfo()

Returns ContentInfo object we're clearing the cache for.

Location[] getLocationsToClear()

Returns all location objects registered to the cache clear process.

addLocationToClear(Location $location)

Adds a location that needs to be cleared.

setLocationsToClear(array $locationsToClear)

Replaces the list of locations to clear.

Details

at line 33
public __construct(ContentInfo $contentInfo)

Parameters

ContentInfo $contentInfo

at line 43
public ContentInfo getContentInfo()

Returns ContentInfo object we're clearing the cache for.

Return Value

ContentInfo

at line 53
public Location[] getLocationsToClear()

Returns all location objects registered to the cache clear process.

Return Value

Location[]

at line 63
public addLocationToClear(Location $location)

Adds a location that needs to be cleared.

Parameters

Location $location

at line 73
public setLocationsToClear(array $locationsToClear)

Replaces the list of locations to clear.

Parameters

array $locationsToClear