Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud_orchestrator
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
cloud_orchestrator
Commits
19b03e74
Commit
19b03e74
authored
1 year ago
by
baldwinlouie
Committed by
Yas Naoi
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3391149
by baldwinlouie, yas: Comply with Drupal coding standards (5)
parent
668cf01d
No related branches found
No related tags found
1 merge request
!75
Issue #3391149: Fix coding messages
Pipeline
#27321
passed
1 year ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Controller/DashboardController.php
+6
-6
6 additions, 6 deletions
src/Controller/DashboardController.php
with
6 additions
and
6 deletions
src/Controller/DashboardController.php
+
6
−
6
View file @
19b03e74
...
...
@@ -150,7 +150,7 @@ class DashboardController extends ControllerBase implements DashboardControllerI
* @return array
* Array of blocks.
*/
pr
ivate
function
getOpenStackBlocks
():
array
{
pr
otected
function
getOpenStackBlocks
():
array
{
$openstack_blocks
=
[];
$openstack_blocks
[
'label'
]
=
$this
->
t
(
'OpenStack'
);
$openstack_blocks
[
'top'
]
=
$this
->
getBlock
(
...
...
@@ -174,7 +174,7 @@ class DashboardController extends ControllerBase implements DashboardControllerI
* @return array
* Array of blocks.
*/
pr
ivate
function
getVmwareBlocks
():
array
{
pr
otected
function
getVmwareBlocks
():
array
{
$vmware_blocks
=
[];
$vmware_blocks
[
'label'
]
=
$this
->
t
(
'VMware'
);
$vmware_blocks
[
'top'
]
=
$this
->
getBlock
(
...
...
@@ -204,7 +204,7 @@ class DashboardController extends ControllerBase implements DashboardControllerI
* @return array
* Array of blocks.
*/
pr
ivate
function
getTerraformBlocks
():
array
{
pr
otected
function
getTerraformBlocks
():
array
{
$terraform_blocks
=
[];
$terraform_blocks
[
'label'
]
=
$this
->
t
(
'Terraform'
);
$terraform_blocks
[
'top'
]
=
$this
->
getBlock
(
...
...
@@ -222,7 +222,7 @@ class DashboardController extends ControllerBase implements DashboardControllerI
* @return array
* Array of blocks.
*/
pr
ivate
function
getAwsCloudBlocks
():
array
{
pr
otected
function
getAwsCloudBlocks
():
array
{
$aws_blocks
=
[];
$aws_blocks
[
'label'
]
=
$this
->
t
(
'AWS'
);
$aws_blocks
[
'top'
]
=
$this
->
getBlock
(
...
...
@@ -260,7 +260,7 @@ class DashboardController extends ControllerBase implements DashboardControllerI
* @return array
* Array of blocks.
*/
pr
ivate
function
getK8sBlocks
():
array
{
pr
otected
function
getK8sBlocks
():
array
{
$k8s_blocks
=
[];
$k8s_blocks
[
'label'
]
=
$this
->
t
(
'K8s'
);
$k8s_blocks
[
'top'
]
=
$this
->
getBlock
(
...
...
@@ -314,7 +314,7 @@ class DashboardController extends ControllerBase implements DashboardControllerI
* @return array
* Render array of the block.
*/
pr
ivate
function
getBlock
(
string
$block_id
,
array
$config
=
[]):
array
{
pr
otected
function
getBlock
(
string
$block_id
,
array
$config
=
[]):
array
{
try
{
/** @var \Drupal\Core\Block\BlockPluginInterface $block */
$block
=
$this
->
blockManager
->
createInstance
(
$block_id
,
$config
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment