You are here

public static function EntityReferenceTreeController::create in Entity Reference Tree Widget 8

Same name and namespace in other branches
  1. 2.x src/Controller/EntityReferenceTreeController.php \Drupal\entity_reference_tree\Controller\EntityReferenceTreeController::create()

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The Drupal service container.

Return value

static

Overrides ControllerBase::create

File

src/Controller/EntityReferenceTreeController.php, line 53

Class

EntityReferenceTreeController
EntityReferenceTreeController class.

Namespace

Drupal\entity_reference_tree\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('form_builder'), $container
    ->get('csrf_token'));
}