You are here

public function VarbaseDashboardUser::__construct in Varbase Total Control Dashboard 9.0.x

Same name and namespace in other branches
  1. 8.6 src/Plugin/Block/VarbaseDashboardUser.php \Drupal\varbase_total_control\Plugin\Block\VarbaseDashboardUser::__construct()

Creates a VarbaseDashboardUser block instance.

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\StringTranslation\TranslationInterface $string_translation: The translation manager.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.

\Drupal\Core\Session\AccountInterface $current_user: AccountProxy current user definition.

\Drupal\Core\Entity\EntityStorageInterface $user_storage: The user storage.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/VarbaseDashboardUser.php, line 80

Class

VarbaseDashboardUser
Provides a 'Varbase Dashboard User'.

Namespace

Drupal\varbase_total_control\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $string_translation, RedirectDestinationInterface $redirect_destination, AccountInterface $current_user, EntityStorageInterface $user_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->stringTranslation = $string_translation;
  $this->redirectDestination = $redirect_destination;
  $this->currentUser = $current_user;
  $this->userStorage = $user_storage;
}