You are here

public static function PreviewController::create in View Modes Display 8.2

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: Container.

Return value

\Drupal\Core\Controller\ControllerBase ControllerBase with injected services.

Overrides ControllerBase::create

File

src/Controller/PreviewController.php, line 63

Class

PreviewController
Class DefaultController.

Namespace

Drupal\view_modes_display\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('view_modes_display.preview_factory'), $container
    ->get('entity_display.repository'));
}