Spatie\MediaLibrary\Conversion\Conversion::shouldBePerformedOn PHP Method

shouldBePerformedOn() public method

* Determine if this conversion should be performed on the given collection.
public shouldBePerformedOn ( string $collectionName ) : boolean
$collectionName string
return boolean
    public function shouldBePerformedOn(string $collectionName) : bool
    {
        //if no collections were specified, perform conversion on all collections
        if (!count($this->performOnCollections)) {
            return true;
        }
        if (in_array('*', $this->performOnCollections)) {
            return true;
        }
        return in_array($collectionName, $this->performOnCollections);
    }