Craft\RetourService::getRedirectByElementId PHP Method

getRedirectByElementId() public method

public getRedirectByElementId ( integer $elementId, string $locale ) : Mixed
$elementId integer The associated elementId
$locale string The locale
return Mixed The resulting Redirect
    public function getRedirectByElementId($elementId, $locale)
    {
        $result = Retour_RedirectsRecord::model()->findByAttributes(array('associatedElementId' => $elementId, 'locale' => $locale));
        return $result;
    }