Skip to content
Snippets Groups Projects
Commit 212652a3 authored by yas's avatar yas
Browse files

Converted the array syntax from array(...) to [...]

parent 0cea8eb8
No related branches found
No related tags found
No related merge requests found
Showing
with 411 additions and 411 deletions
......@@ -62,7 +62,7 @@ class AwsCloudLocalTasks extends DeriverBase implements ContainerDeriverInterfac
$this->derivatives[$id]['title'] = $entity->label();
$this->derivatives[$id]['route_name'] = 'entity.aws_cloud_instance.collection';
// $this->derivatives[$id]['base_route'] = 'aws_cloud.local_tasks.cloud_context.list_all';
$this->derivatives[$id]['route_parameters'] = array('cloud_context' => $cloud_context);
$this->derivatives[$id]['route_parameters'] = ['cloud_context' => $cloud_context];
}
/**
......
......@@ -58,7 +58,7 @@ class AwsCloudMenuLinks extends DeriverBase implements ContainerDeriverInterface
$this->derivatives[$id]['route_name'] = 'entity.aws_cloud_instance.collection';
$this->derivatives[$id]['base_route'] = 'cloud.service_providers.menu';
$this->derivatives[$id]['parent'] = 'cloud.service_providers.menu';
$this->derivatives[$id]['route_parameters'] = array('cloud_context' => $cloud_context);
$this->derivatives[$id]['route_parameters'] = ['cloud_context' => $cloud_context];
}
foreach ($this->derivatives as &$entry) {
......
......@@ -58,7 +58,7 @@ class AwsCloudMenuLinks extends DeriverBase implements ContainerDeriverInterface
$this->derivatives[$id]['route_name'] = 'entity.aws_cloud_instance.collection';
$this->derivatives[$id]['base_route'] = 'cloud.service_providers.menu';
$this->derivatives[$id]['parent'] = 'cloud.service_providers.menu';
$this->derivatives[$id]['route_parameters'] = array('cloud_context' => $cloud_context);
$this->derivatives[$id]['route_parameters'] = ['cloud_context' => $cloud_context];
}
/**
......
......@@ -10,7 +10,7 @@ class AwsCloudTab extends LocalTaskDefault {
* {@inheritdoc}
*/
public function getRouteParameters(RouteMatchInterface $route_match) {
return array('cloud_context' => $route_match->getParameter('cloud_context'));
return ['cloud_context' => $route_match->getParameter('cloud_context')];
}
}
\ No newline at end of file
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