You are here

public function BlockService::getAllBlocks in Opigno dashboard 8

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

Returns all blocks.

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

File

src/BlockService.php, line 24

Class

BlockService
Class BlockService.

Namespace

Drupal\opigno_dashboard

Code

public function getAllBlocks() {
  $blockManager = \Drupal::service('plugin.manager.block');
  return $blockManager
    ->getDefinitions();
}