public function MegaMenuAdd::__construct in The Better Mega Menu 8
Same name and namespace in other branches
- 2.x src/Form/MegaMenuAdd.php \Drupal\tb_megamenu\Form\MegaMenuAdd::__construct()
Constructs a MegaMenuAdd object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory service.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler service.
File
- src/
Form/ MegaMenuAdd.php, line 40
Class
- MegaMenuAdd
- Form handler for adding MegaMenuConfig entities.
Namespace
Drupal\tb_megamenu\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ThemeHandlerInterface $theme_handler) {
$this->config = $config_factory;
$this->themeHandler = $theme_handler;
}