You are here

public static function FaqController::create in Frequently Asked Questions 8

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

Return value

static

Overrides ControllerBase::create

File

src/Controller/FaqController.php, line 62

Class

FaqController
Controller routines for FAQ routes.

Namespace

Drupal\faq\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('database'), $container
    ->get('config.factory'), $container
    ->get('renderer'), $container
    ->get('entity_type.manager'), $container
    ->get('language_manager'), $container
    ->get('link_generator'));
}