Craft\RetourService::getRedirectByRedirectSrcUrl PHP Method

getRedirectByRedirectSrcUrl() public method

public getRedirectByRedirectSrcUrl ( string $srcUrl, string $locale ) : Mixed
$srcUrl string the redirect's redirectSrcUrl
$locale string The locale
return Mixed The resulting Redirect
    public function getRedirectByRedirectSrcUrl($srcUrl, $locale)
    {
        $result = Retour_RedirectsRecord::model()->findByAttributes(array('redirectSrcUrlParsed' => $srcUrl, 'locale' => $locale));
        return $result;
    }