eZ\Publish\Core\MVC\Symfony\Event\ContentCacheClearEvent::getContentInfo PHP Method

getContentInfo() public method

Returns ContentInfo object we're clearing the cache for.
public getContentInfo ( ) : eZ\Publish\API\Repository\Values\Content\ContentInfo
return eZ\Publish\API\Repository\Values\Content\ContentInfo
    public function getContentInfo()
    {
        return $this->contentInfo;
    }

Usage Example

 public function onContentCacheClear(ContentCacheClearEvent $event)
 {
     $contentInfo = $event->getContentInfo();
     foreach ($this->locationService->loadLocations($contentInfo) as $location) {
         $event->addLocationToClear($location);
     }
 }
All Usage Examples Of eZ\Publish\Core\MVC\Symfony\Event\ContentCacheClearEvent::getContentInfo