You are here

public static function ThunderRedirect::create in Thunder 6.2.x

@codeCoverageIgnore

Overrides ContainerFactoryPluginInterface::create

File

modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderRedirect.php, line 53

Class

ThunderRedirect
Gets the ID of current user.

Namespace

Drupal\thunder_gqls\Plugin\GraphQL\DataProducer

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('language_manager'), $container
    ->get('redirect.repository', ContainerInterface::NULL_ON_INVALID_REFERENCE));
}