You are here

public static function LoginTobogganloggedBlock::create in LoginToboggan 8

Instantiate class.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: Gets dependency injector.

array $configuration: Gets config in scope.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

Return value

static

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/Block/LoginTobogganloggedBlock.php, line 45

Class

LoginTobogganloggedBlock
Provides a 'LoginToboggan logged' block.

Namespace

Drupal\logintoboggan\Plugin\Block

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('current_user'));
}