You are here

public static function OAuthDeleteConsumerForm::create in OAuth 1.0 8

Same name and namespace in other branches
  1. 8.2 src/Form/OAuthDeleteConsumerForm.php \Drupal\oauth\Form\OAuthDeleteConsumerForm::create()

Factory.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The DIC.

Return value

static The form instance.

Overrides FormBase::create

File

src/Form/OAuthDeleteConsumerForm.php, line 33
Contains \Drupal\oauth\Form\OAuthDeleteConsumerForm.

Class

OAuthDeleteConsumerForm
Provides an oauth_consumer deletion confirmation form.

Namespace

Drupal\oauth\Form

Code

public static function create(ContainerInterface $container) {

  /** @var \Drupal\Core\Database\Connection $database */
  $database = $container
    ->get('database');
  return new static($database);
}