protected function generateTags(Signal $signal)
    {
        $tags = [];

        if (isset($signal->contentId)) {
            // self in all forms (also without locations)
            $tags[] = 'content-' . $signal->contentId;
            // reverse relations
            $tags[] = 'relation-' . $signal->contentId;
        }

        if (isset($signal->locationId)) {
            // self
            $tags[] = 'location-' . $signal->locationId;
            // direct children
            $tags[] = 'parent-' . $signal->locationId;
            // reverse location relations
            $tags[] = 'relation-location-' . $signal->locationId;
        }

        if (isset($signal->parentLocationId)) {
            // direct parent
            $tags[] = 'location-' . $signal->parentLocationId;
            // direct siblings
            $tags[] = 'parent-' . $signal->parentLocationId;
        }

        return $tags;
    }
protected function generateTags(Signal $signal)
    {
        $tags = [];

        if (isset($signal->contentId)) {
            // self in all forms (also without locations)
            $tags[] = 'content-' . $signal->contentId;
            // reverse relations
            $tags[] = 'relation-' . $signal->contentId;
        }

        if (isset($signal->locationId)) {
            // self
            $tags[] = 'location-' . $signal->locationId;
            // direct children
            $tags[] = 'parent-' . $signal->locationId;
            // reverse location relations
            $tags[] = 'relation-location-' . $signal->locationId;
        }

        if (isset($signal->parentLocationId)) {
            // direct parent
            $tags[] = 'location-' . $signal->parentLocationId;
            // direct siblings
            $tags[] = 'parent-' . $signal->parentLocationId;
        }

        return $tags;
    }
protected function generateTags ( Signal $ signal ) { $ tags = [ ] ; if ( isset ( $ signal -> contentId ) ) { // self in all forms (also without locations) $ tags [ ] = 'content-' . $ signal -> contentId ; // reverse relations $ tags [ ] = 'relation-' . $ signal -> contentId ; } if ( isset ( $ signal -> locationId ) ) { // self $ tags [ ] = 'location-' . $ signal -> locationId ; // direct children $ tags [ ] = 'parent-' . $ signal -> locationId ; // reverse location relations $ tags [ ] = 'relation-location-' . $ signal -> locationId ; } if ( isset ( $ signal -> parentLocationId ) ) { // direct parent $ tags [ ] = 'location-' . $ signal -> parentLocationId ; // direct siblings $ tags [ ] = 'parent-' . $ signal -> parentLocationId ; } return $ tags ; }
Default provides tags to clear content, relation, location, parent and sibling cache.

Overload and call parent for tree operations where you also need to clear whole path.

@param \eZ\Publish\Core\SignalSlot\Signal $signal

@return array
Default provides tags to clear content relation location parent and sibling cache .