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
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ public function getDefaultOperations(EntityInterface $entity) { ...@@ -92,7 +92,7 @@ public function getDefaultOperations(EntityInterface $entity) {
public function render() { public function render() {
$build = parent::render(); $build = parent::render();
$build['#empty'] = $this->t('There are currently no styles. <a href="!url">Add a new one</a>.', array( $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; return $build;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment