function FieldStorageAddForm::getRedirectUrl
Same name and namespace in other branches
- 11.x core/modules/field_ui/src/Form/FieldStorageAddForm.php \Drupal\field_ui\Form\FieldStorageAddForm::getRedirectUrl()
Gets the redirect URL.
Parameters
string $field_name: The field name.
Return value
\Drupal\Core\Url The URL to redirect to.
Throws
\Drupal\Component\Plugin\Exception\PluginNotFoundException
1 call to FieldStorageAddForm::getRedirectUrl()
- FieldStorageAddForm::submitForm in core/
modules/ field_ui/ src/ Form/ FieldStorageAddForm.php
File
-
core/
modules/ field_ui/ src/ Form/ FieldStorageAddForm.php, line 327
Class
- FieldStorageAddForm
- Provides a form for the "field storage" add subform.
Namespace
Drupal\field_ui\FormCode
private function getRedirectUrl(string $field_name) : Url {
$route_parameters = [
'field_name' => $field_name,
'entity_type' => $this->entityTypeId,
] + FieldUI::getRouteBundleParameter($this->entityTypeManager
->getDefinition($this->entityTypeId), $this->bundle);
return Url::fromRoute("field_ui.field_add_{$this->entityTypeId}", $route_parameters);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.