You are here

public function TBMegaMenuBuilderInterface::getAllBlocks in The Better Mega Menu 8

Same name and namespace in other branches
  1. 2.x src/TBMegaMenuBuilderInterface.php \Drupal\tb_megamenu\TBMegaMenuBuilderInterface::getAllBlocks()

Get all of blocks in system without blocks which belong to TB Mega Menu.

In array, each element includes key which is plugin_id and value which is label of block.

@staticvar array $_blocks_array

Return value

\Drupal\Core\Entity\EntityTypeInterface[] An array of block entities or an empty array if none found.

1 method overrides TBMegaMenuBuilderInterface::getAllBlocks()
TBMegaMenuBuilder::getAllBlocks in src/TBMegaMenuBuilder.php
Get all of blocks in system without blocks which belong to TB Mega Menu.

File

src/TBMegaMenuBuilderInterface.php, line 156

Class

TBMegaMenuBuilderInterface
Provides an interface defining a TB MegaMenu builder.

Namespace

Drupal\tb_megamenu

Code

public function getAllBlocks(string $theme);