You are here

public function LoginShadowboxLoginBlock::__construct in Shadowbox 8

Constructs a \Drupal\views\Plugin\Block\ViewsBlockBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Session\AccountInterface $currentUser: The current user.

File

login_shadowbox/lib/Drupal/login_shadowbox/Plugin/Block/LoginShadowboxLoginBlock.php, line 56
Contains \Drupal\login_shadowbox\Plugin\Block\LoginShadowboxLoginBlock.

Class

LoginShadowboxLoginBlock
Provides a 'Shadowbox Login' block.

Namespace

Drupal\login_shadowbox\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, AccountInterface $current_user) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configFactory = $config_factory;
  $this->currentUser = $current_user;
}