You are here

public static function FacebookAuthSettingsForm::create in Social Auth Facebook 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/FacebookAuthSettingsForm.php \Drupal\social_auth_facebook\Form\FacebookAuthSettingsForm::create()
  2. 8 src/Form/FacebookAuthSettingsForm.php \Drupal\social_auth_facebook\Form\FacebookAuthSettingsForm::create()

Instantiates a new instance of this class.

This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.

Overrides SocialAuthSettingsForm::create

File

src/Form/FacebookAuthSettingsForm.php, line 46

Class

FacebookAuthSettingsForm
Settings form for Social Auth Facebook.

Namespace

Drupal\social_auth_facebook\Form

Code

public static function create(ContainerInterface $container) {

  // Instantiates this class.
  return new static($container
    ->get('config.factory'), $container
    ->get('router.route_provider'), $container
    ->get('path.validator'), $container
    ->get('router.request_context'));
}