Skip to content
Snippets Groups Projects
Commit 19b03e74 authored by baldwinlouie's avatar baldwinlouie Committed by Yas Naoi
Browse files

Issue #3391149 by baldwinlouie, yas: Comply with Drupal coding standards (5)

parent 668cf01d
No related branches found
No related tags found
1 merge request!75Issue #3391149: Fix coding messages
Pipeline #27321 passed
......@@ -150,7 +150,7 @@ class DashboardController extends ControllerBase implements DashboardControllerI
* @return array
* Array of blocks.
*/
private function getOpenStackBlocks(): array {
protected 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.
*/
private function getVmwareBlocks(): array {
protected 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.
*/
private function getTerraformBlocks(): array {
protected 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.
*/
private function getAwsCloudBlocks(): array {
protected 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.
*/
private function getK8sBlocks(): array {
protected 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.
*/
private function getBlock(string $block_id, array $config = []): array {
protected function getBlock(string $block_id, array $config = []): array {
try {
/** @var \Drupal\Core\Block\BlockPluginInterface $block */
$block = $this->blockManager->createInstance($block_id, $config);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment