public function NodeRevisionDeleteCommands::__construct in Node Revision Delete 8
NodeRevisionDeleteCommands constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The ConfigManager service.
\Drupal\node_revision_delete\NodeRevisionDelete $nodeRevisionDelete: The NodeRevisionDelete service.
\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: The DateFormatter service.
\Drupal\Core\State\StateInterface $state: The State service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The EntityTypeManager service.
File
- src/
Commands/ NodeRevisionDeleteCommands.php, line 70
Class
- NodeRevisionDeleteCommands
- Class NodeRevisionDeleteCommands.
Namespace
Drupal\node_revision_delete\CommandsCode
public function __construct(ConfigFactoryInterface $configFactory, NodeRevisionDelete $nodeRevisionDelete, DateFormatterInterface $dateFormatter, StateInterface $state, EntityTypeManagerInterface $entityTypeManager) {
$this->configFactory = $configFactory;
$this->nodeRevisionDelete = $nodeRevisionDelete;
$this->dateFormatter = $dateFormatter;
$this->state = $state;
$this->entityTypeManager = $entityTypeManager;
}