File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Plugin/Field/FieldFormatter Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,6 @@ class {{ entity_class }}Form extends EntityForm {% endblock %}
70
70
'%label' => ${{ entity_name | machine_name }}->label(),
71
71
]));
72
72
}
73
- $form_state->setRedirectUrl(${{ entity_name | machine_name }}->urlInfo ('collection'));
73
+ $form_state->setRedirectUrl(${{ entity_name | machine_name }}->toUrl ('collection'));
74
74
}
75
75
{% endblock %}
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ class {{ class_name }} extends ImageFormatterBase implements ContainerFactoryPlu
177
177
if ($image_link_setting == 'content') {
178
178
$entity = $items->getEntity();
179
179
if (!$entity->isNew()) {
180
- $url = $entity->urlInfo ();
180
+ $url = $entity->toUrl ();
181
181
}
182
182
}
183
183
elseif ($image_link_setting == 'file') {
You can’t perform that action at this time.
0 commit comments