public function TBMegaMenuBuilderInterface::loadEntityBlock in The Better Mega Menu 2.x
Same name and namespace in other branches
- 8 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_megamenuCode
public function loadEntityBlock(string $block_id);