public function contentTypeGroup($id)
    {
        if ($this->allCleared === true || $this->isSwitchedOff()) {
            return;
        }

        if (is_scalar($id)) {
            // @todo should also clear content type cache for items themselves in case of link/unlink changes, kernel should have a "type-all" tag for this
            $this->cache->invalidateTags(['type-group-' . $id, 'type-map']);
        } else {
            throw new InvalidArgumentType('$id', 'int|null', $id);
        }
    }
public function contentTypeGroup($id)
    {
        if ($this->allCleared === true || $this->isSwitchedOff()) {
            return;
        }

        if (is_scalar($id)) {
            // @todo should also clear content type cache for items themselves in case of link/unlink changes, kernel should have a "type-all" tag for this
            $this->cache->invalidateTags(['type-group-' . $id, 'type-map']);
        } else {
            throw new InvalidArgumentType('$id', 'int|null', $id);
        }
    }
public function contentTypeGroup ( $ id ) { if ( $ this -> allCleared === true || $ this -> isSwitchedOff ( ) ) { return ; } if ( is_scalar ( $ id ) ) { // @todo should also clear content type cache for items themselves in case of link/unlink changes, kernel should have a "type-all" tag for this $ this -> cache -> invalidateTags ( [ 'type-group-' . $ id , 'type-map' ] ) ; } else { throw new InvalidArgumentType ( '$id' , 'int|null' , $ id ) ; } }
Clear contentTypeGroup persistence cache by id.

In legacy kernel used when editing/removing content type group, so there is always an id.

@param int $id
@throws \eZ\Publish\Core\Base\Exceptions\InvalidArgumentType On invalid $id type
Clear contentTypeGroup persistence cache by id .