You are here

public static function EntityconnectController::create in Entity connect 8.2

Uses Symfony's ContainerInterface to declare dependency for constructor.

Overrides ControllerBase::create

File

src/Controller/EntityconnectController.php, line 63

Class

EntityconnectController
Returns responses for Entityconnect module routes.

Namespace

Drupal\entityconnect\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('renderer'), $container
    ->get('entityconnect.cache'), $container
    ->get('messenger'));
}