public function VarbaseCreateContent::__construct in Varbase Total Control Dashboard 9.0.x
Same name and namespace in other branches
- 8.6 src/Plugin/Block/VarbaseCreateContent.php \Drupal\varbase_total_control\Plugin\Block\VarbaseCreateContent::__construct()
Creates a VarbaseCreateContent 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\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.
\Drupal\Core\Session\AccountInterface $current_user: AccountProxy current user definition.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ VarbaseCreateContent.php, line 85
Class
- VarbaseCreateContent
- Provides a 'Create content'.
Namespace
Drupal\varbase_total_control\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $string_translation, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, RedirectDestinationInterface $redirect_destination, AccountInterface $current_user) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->stringTranslation = $string_translation;
$this->entityTypeManager = $entity_type_manager;
$this->renderer = $renderer;
$this->redirectDestination = $redirect_destination;
$this->currentUser = $current_user;
}