You are here

public static function EntityDeleteForm::create in Entity Delete 8

Creating Container for constructor.

Parameters

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

Return value

static Return static value.

Overrides FormBase::create

File

src/Form/EntityDeleteForm.php, line 63

Class

EntityDeleteForm
Class EntityDeleteForm.

Namespace

Drupal\entity_delete\Form

Code

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