@@ -18,7 +18,7 @@ |
||
| 18 | 18 | * {@inheritdoc} |
| 19 | 19 | */ |
| 20 | 20 | public static function getSubscribedEvents() { |
| 21 | - $events[RoutingEvents::ALTER] = ['onAlterRoutes',-9999]; // negative Values means "late" |
|
| 21 | + $events[RoutingEvents::ALTER] = ['onAlterRoutes', -9999]; // negative Values means "late" |
|
| 22 | 22 | return $events; |
| 23 | 23 | } |
| 24 | 24 | |
@@ -132,12 +132,12 @@ |
||
| 132 | 132 | if ($transition = ModerationStateTransition::load($id)) { |
| 133 | 133 | $styles = type_style_get_styles($transition); |
| 134 | 134 | if (!empty($styles)) { |
| 135 | - $build['actions']['quick_draft_form'][$id]['#attributes']['style'] = 'background-color: ' . $styles['color']; |
|
| 135 | + $build['actions']['quick_draft_form'][$id]['#attributes']['style'] = 'background-color: '.$styles['color']; |
|
| 136 | 136 | $build['actions']['quick_draft_form'][$id] = [ |
| 137 | 137 | '#type' => 'container', |
| 138 | 138 | $build['actions']['quick_draft_form'][$id], |
| 139 | 139 | [ |
| 140 | - '#markup' => '<i class="material-icons">' . $styles['icon'] . '</i>' |
|
| 140 | + '#markup' => '<i class="material-icons">'.$styles['icon'].'</i>' |
|
| 141 | 141 | ], |
| 142 | 142 | '#attributes' => [ |
| 143 | 143 | 'class' => ['moderation-sidebar-button-wrapper'], |
@@ -68,8 +68,7 @@ discard block |
||
| 68 | 68 | if (isset($options['langcode'])) { |
| 69 | 69 | $url_options['language'] = \Drupal::languageManager()->getLanguage($options['langcode']); |
| 70 | 70 | $langcode = $options['langcode']; |
| 71 | - } |
|
| 72 | - else { |
|
| 71 | + } else { |
|
| 73 | 72 | $langcode = NULL; |
| 74 | 73 | } |
| 75 | 74 | |
@@ -93,8 +92,7 @@ discard block |
||
| 93 | 92 | $replacements[$original] = Url::fromRoute('entity.node.latest_version', [ |
| 94 | 93 | 'node' => $node->id(), |
| 95 | 94 | ], $url_options)->toString(); |
| 96 | - } |
|
| 97 | - else { |
|
| 95 | + } else { |
|
| 98 | 96 | $replacements[$original] = $latest->toUrl('canonical', $url_options)->toString(); |
| 99 | 97 | } |
| 100 | 98 | break; |