Craft\RetourService::getRedirectByElementId PHP Méthode

getRedirectByElementId() public méthode

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