You are here

public function TBMegaMenuBlock::__construct in The Better Mega Menu 2.x

Same name in this branch
  1. 2.x src/Plugin/Derivative/TBMegaMenuBlock.php \Drupal\tb_megamenu\Plugin\Derivative\TBMegaMenuBlock::__construct()
  2. 2.x src/Plugin/Block/TBMegaMenuBlock.php \Drupal\tb_megamenu\Plugin\Block\TBMegaMenuBlock::__construct()
Same name and namespace in other branches
  1. 8 src/Plugin/Derivative/TBMegaMenuBlock.php \Drupal\tb_megamenu\Plugin\Derivative\TBMegaMenuBlock::__construct()

TBMegaMenuBlock constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config factory interface.

File

src/Plugin/Derivative/TBMegaMenuBlock.php, line 37

Class

TBMegaMenuBlock
Provides blocks which belong to TB Mega Menu.

Namespace

Drupal\tb_megamenu\Plugin\Derivative

Code

public function __construct(ConfigFactoryInterface $configFactory, EntityTypeManagerInterface $entityTypeManager) {
  $this->configFactory = $configFactory;
  $this->entityTypeManager = $entityTypeManager;
}