You are here

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

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

Load blocks by block_id.

Parameters

string $block_id: The block id.

Return value

\Drupal\Core\Entity\EntityInterface|null The block entity.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

1 method overrides TBMegaMenuBuilderInterface::loadEntityBlock()
TBMegaMenuBuilder::loadEntityBlock in src/TBMegaMenuBuilder.php
Load blocks by block_id.

File

src/TBMegaMenuBuilderInterface.php, line 74

Class

TBMegaMenuBuilderInterface
Provides an interface defining a TB MegaMenu builder.

Namespace

Drupal\tb_megamenu

Code

public function loadEntityBlock(string $block_id);