private function loadCollectionId(
        $collectionKey,
        $locale
    ) {
        try {
            $collection = $this->collectionManager->getByKey($collectionKey, $locale);

            if (!$collection) {
                return;
            }

            return $collection->getId();
        } catch (\Exception $e) {
            // Catch all exception
        }
    }
private function loadCollectionId(
        $collectionKey,
        $locale
    ) {
        try {
            $collection = $this->collectionManager->getByKey($collectionKey, $locale);

            if (!$collection) {
                return;
            }

            return $collection->getId();
        } catch (\Exception $e) {
            // Catch all exception
        }
    }
private function loadCollectionId ( $ collectionKey , $ locale ) { try { $ collection = $ this -> collectionManager -> getByKey ( $ collectionKey , $ locale ) ; if ( ! $ collection ) { return ; } return $ collection -> getId ( ) ; } catch ( \ Exception $ e ) { // Catch all exception } }
Load collection id.

@param string $collectionKey
@param string $locale

@return int
Load collection id .