Mercurial > hg > isophonics-drupal-site
comparison core/modules/image/src/ImageStyleListBuilder.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
37 'title' => t('Flush'), | 37 'title' => t('Flush'), |
38 'weight' => 200, | 38 'weight' => 200, |
39 'url' => $entity->urlInfo('flush-form'), | 39 'url' => $entity->urlInfo('flush-form'), |
40 ]; | 40 ]; |
41 | 41 |
42 return parent::getDefaultOperations($entity) + [ | 42 $operations = parent::getDefaultOperations($entity) + [ |
43 'flush' => $flush, | 43 'flush' => $flush, |
44 ]; | 44 ]; |
45 | |
46 // Remove destination URL from the edit link to allow editing image | |
47 // effects. | |
48 if (isset($operations['edit'])) { | |
49 $operations['edit']['url'] = $entity->toUrl('edit-form'); | |
50 } | |
51 | |
52 return $operations; | |
45 } | 53 } |
46 | 54 |
47 /** | 55 /** |
48 * {@inheritdoc} | 56 * {@inheritdoc} |
49 */ | 57 */ |