public function isCollectionAvailable(\collection $collection)
    {
        if (!$this->isRestricted()) {
            return true;
        }

        $availableCollections = isset($this->availableCollections[$collection->get_sbas_id()])
            ? $this->availableCollections[$collection->get_sbas_id()] : [];

        return in_array($collection->get_base_id(), $availableCollections, true);
    }
public function isCollectionAvailable(\collection $collection)
    {
        if (!$this->isRestricted()) {
            return true;
        }

        $availableCollections = isset($this->availableCollections[$collection->get_sbas_id()])
            ? $this->availableCollections[$collection->get_sbas_id()] : [];

        return in_array($collection->get_base_id(), $availableCollections, true);
    }
public function isCollectionAvailable ( \ collection $ collection ) { if ( ! $ this -> isRestricted ( ) ) { return true ; } $ availableCollections = isset ( $ this -> availableCollections [ $ collection -> get_sbas_id ( ) ] ) ? $ this -> availableCollections [ $ collection -> get_sbas_id ( ) ] : [ ] ; return in_array ( $ collection -> get_base_id ( ) , $ availableCollections , true ) ; }
Returns true if a collection is available given a configuration.

@param \collection $collection

@return bool
Returns true if a collection is available given a configuration .