public function updateCollection(EntityChangeEventInterface $event)
    {
        $collection = $event->getCollection();
        if ($collection->getId()) {
            $collectionMap = $this->getCollectionsMap();
            $collectionMap
                ->set($collection->getId(), $collection);
        }
    }
public function updateCollection(EntityChangeEventInterface $event)
    {
        $collection = $event->getCollection();
        if ($collection->getId()) {
            $collectionMap = $this->getCollectionsMap();
            $collectionMap
                ->set($collection->getId(), $collection);
        }
    }
public function updateCollection ( EntityChangeEventInterface $ event ) { $ collection = $ event -> getCollection ( ) ; if ( $ collection -> getId ( ) ) { $ collectionMap = $ this -> getCollectionsMap ( ) ; $ collectionMap -> set ( $ collection -> getId ( ) , $ collection ) ; } }
Handles collection add event and updates the cache

@param EntityChangeEventInterface $event
Handles collection add event and updates the cache