public function WishlistBlock::__construct in Commerce Wishlist 8.3
Constructs a new WishlistBlock.
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\commerce_wishlist\WishlistProviderInterface $wishlist_provider: The wishlist provider.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ WishlistBlock.php, line 42
Class
- WishlistBlock
- Provides a wishlist block.
Namespace
Drupal\commerce_wishlist\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, WishlistProviderInterface $wishlist_provider) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->wishlistProvider = $wishlist_provider;
}