public function SimpleMegaMenuController::__construct in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x src/Controller/SimpleMegaMenuController.php \Drupal\simple_megamenu\Controller\SimpleMegaMenuController::__construct()
Constructs a BlockContent object.
Parameters
\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter service.
\Drupal\Core\Render\Renderer $renderer: The renderer service.
File
- src/
Controller/ SimpleMegaMenuController.php, line 56
Class
- SimpleMegaMenuController
- Class SimpleMegaMenuController.
Namespace
Drupal\simple_megamenu\ControllerCode
public function __construct(DateFormatter $date_formatter, Renderer $renderer) {
$this->dateFormatter = $date_formatter;
$this->renderer = $renderer;
}