Skip to content
Snippets Groups Projects
Commit a351a02a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2556731 by karmazzin: Remove usage of deprecated...

Issue #2556731 by karmazzin: Remove usage of deprecated UrlGeneratorInterface::generateFromPath() from ImageStyleListBuilder::build()
parent 1a22dcd8
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -92,7 +92,7 @@ public function getDefaultOperations(EntityInterface $entity) {
public function render() {
$build = parent::render();
$build['#empty'] = $this->t('There are currently no styles. <a href="!url">Add a new one</a>.', array(
'!url' => $this->urlGenerator->generateFromPath('admin/config/media/image-styles/add'),
'!url' => $this->urlGenerator->generateFromRoute('image.style_add'),
));
return $build;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment