public function RedirectRepository::load in Redirect 8
Load redirect entity by id.
Parameters
int $redirect_id: The redirect id.
Return value
\Drupal\redirect\Entity\Redirect
1 call to RedirectRepository::load()
- RedirectRepository::findMatchingRedirect in src/
RedirectRepository.php - Gets a redirect for given path, query and language.
File
- src/
RedirectRepository.php, line 166
Class
Namespace
Drupal\redirectCode
public function load($redirect_id) {
return $this->manager
->getStorage('redirect')
->load($redirect_id);
}