src/base/Filter.php
public function findEffect($effectIdentifier)
    {
        // find effect model based on the effectIdentifier
        $model = StorageEffect::find()->where(['identifier' => $effectIdentifier])->asArray()->one();
        // if the effect model could not found, throw Exception.
        if (!$model) {
            throw new Exception("The requested effect '$effectIdentifier' does not exist.");
        }
        // array
        return $model;
    }
public function findEffect($effectIdentifier)
    {
        // find effect model based on the effectIdentifier
        $model = StorageEffect::find()->where(['identifier' => $effectIdentifier])->asArray()->one();
        // if the effect model could not found, throw Exception.
        if (!$model) {
            throw new Exception("The requested effect '$effectIdentifier' does not exist.");
        }
        // array
        return $model;
    }
public function findEffect ( $ effectIdentifier ) { // find effect model based on the effectIdentifier $ model = StorageEffect :: find ( ) -> where ( [ 'identifier' => $ effectIdentifier ] ) -> asArray ( ) -> one ( ) ; // if the effect model could not found, throw Exception. if ( ! $ model ) { throw new Exception ( "The requested effect '$effectIdentifier' does not exist." ) ; } // array return $ model ; }
Find the effect model based on the effect identifier. If the effect could not found an exception will
be thrown.

@param string $effectIdentifier The name of effect, used EFFECT prefixed constants like
+ EFFECT_RESIZE
+ EFFECT_THUMBNAIL
+ EFFECT_CROP
@return array Contain an array with the effect properties.
@throws \luya\Exception
Find the effect model based on the effect identifier . If the effect could not found an exception will be thrown .