FormBase::getRouteMatch

protected FormBase::getRouteMatch()

Gets the route match.

Return value

\Drupal\Core\Routing\RouteMatchInterface

File

core/lib/Drupal/Core/Form/FormBase.php, line 165

Class

FormBase
Provides a base class for forms.

Namespace

Drupal\Core\Form

Code

1
2
3
4
5
6
protected function getRouteMatch() {
  if (!$this->routeMatch) {
    $this->routeMatch = \Drupal::routeMatch();
  }
  return $this->routeMatch;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.