protected function FormBase::getRouteMatch in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::getRouteMatch()
- 10 core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::getRouteMatch()
Gets the route match.
Return value
\Drupal\Core\Routing\RouteMatchInterface
File
- core/
lib/ Drupal/ Core/ Form/ FormBase.php, line 169
Class
- FormBase
- Provides a base class for forms.
Namespace
Drupal\Core\FormCode
protected function getRouteMatch() {
if (!$this->routeMatch) {
$this->routeMatch = \Drupal::routeMatch();
}
return $this->routeMatch;
}