PHP Class eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\PurgeForContentHttpCacheSlot

Will by default use the contentId property of the signal object, as it is the most common. Override the extractContentId() method in your own signal to use a different property.
Inheritance: extends HttpCacheSlot
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Protected Methods

Method Description
extractContentId ( eZ\Publish\Core\SignalSlot\Signal $signal ) : mixed Default implementation that returns the contentId property's value.
extractLocationIds ( eZ\Publish\Core\SignalSlot\Signal $signal ) : array Default implementation that returns the signal location property values.
purgeHttpCache ( eZ\Publish\Core\SignalSlot\Signal $signal ) : mixed Purges all caches.

Method Details

extractContentId() protected method

Default implementation that returns the contentId property's value.
protected extractContentId ( eZ\Publish\Core\SignalSlot\Signal $signal ) : mixed
$signal eZ\Publish\Core\SignalSlot\Signal
return mixed Content ID

extractLocationIds() protected method

This is extracted and provided to purgeForContent in case content is trashed where affected location is no longer returned by API.
protected extractLocationIds ( eZ\Publish\Core\SignalSlot\Signal $signal ) : array
$signal eZ\Publish\Core\SignalSlot\Signal
return array Location ID's

purgeHttpCache() protected method

Purges all caches.
protected purgeHttpCache ( eZ\Publish\Core\SignalSlot\Signal $signal ) : mixed
$signal eZ\Publish\Core\SignalSlot\Signal
return mixed