public function NodeCounter::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php \Drupal\statistics\Plugin\migrate\destination\NodeCounter::__construct()
Constructs a node counter plugin.
Parameters
array $configuration: Plugin configuration.
string $plugin_id: The plugin ID.
mixed $plugin_definition: The plugin definition.
\Drupal\migrate\Plugin\MigrationInterface $migration: The current migration.
\Drupal\Core\Database\Connection $connection: The database connection.
Overrides DestinationBase::__construct
File
- core/
modules/ statistics/ src/ Plugin/ migrate/ destination/ NodeCounter.php, line 43
Class
- NodeCounter
- Destination for node counter.
Namespace
Drupal\statistics\Plugin\migrate\destinationCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, Connection $connection) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
$this->connection = $connection;
}