public function QuickNodeBlock::__construct in Quick Node Block 8
This function construct a block.
Parameters
array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The The route match service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity manager service.
\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entityDisplay: The entity display repository.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ QuickNodeBlock.php, line 79
Class
- QuickNodeBlock
- Provides a Node Block with his display.
Namespace
Drupal\quick_node_block\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $routeMatch, EntityTypeManagerInterface $entityTypeManager, EntityDisplayRepositoryInterface $entityDisplay) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->routeMatch = $routeMatch;
$this->entityTypeManager = $entityTypeManager;
$this->entityDisplay = $entityDisplay;
}