You are here

public function BlockService::getAllBlocks in Opigno dashboard 3.x

Same name and namespace in other branches
  1. 8 src/BlockService.php \Drupal\opigno_dashboard\BlockService::getAllBlocks()

Returns all blocks.

Return value

array The list of all block definitions.

Overrides BlockServiceInterface::getAllBlocks

1 call to BlockService::getAllBlocks()
BlockService::getAvailableBlocks in src/BlockService.php
Returns available blocks.

File

src/BlockService.php, line 102

Class

BlockService
The dashboard block manager service definition.

Namespace

Drupal\opigno_dashboard

Code

public function getAllBlocks() : array {
  return $this->blockManager
    ->getDefinitions();
}