src/models/StorageImage.php
public function getFilterImage($identifier)
    {
        $filterId = Yii::$app->storage->getFilterId($identifier);
        return $this->hasOne(self::class, ['file_id' => 'file_id'])->andWhere(['filter_id' => $filterId]);
    }
public function getFilterImage($identifier)
    {
        $filterId = Yii::$app->storage->getFilterId($identifier);
        return $this->hasOne(self::class, ['file_id' => 'file_id'])->andWhere(['filter_id' => $filterId]);
    }
public function getFilterImage ( $ identifier ) { $ filterId = Yii :: $ app -> storage -> getFilterId ( $ identifier ) ; return $ this -> hasOne ( self :: class , [ 'file_id' => 'file_id' ] ) -> andWhere ( [ 'filter_id' => $ filterId ] ) ; }
The the relation for an storage image with the given filter identifier

@param string $identifier The identifier of the filter to use.
@return self
@since 1.2.3
The the relation for an storage image with the given filter identifier