type = $type; } /** * @param CatalogProduct $product * @param array $identities * @return string[] */ public function afterGetIdentities( CatalogProduct $product, array $identities ) { foreach ($this->type->getParentIdsByChild($product->getEntityId()) as $parentId) { $identities[] = CatalogProduct::CACHE_TAG . '_' . $parentId; } return $identities; } }