public function BaseUpdateRunner::__construct in Scheduled Updates 8
BaseUpdateRunner constructor.
Parameters
array $configuration:
string $plugin_id:
mixed $plugin_definition:
\Drupal\Core\Entity\EntityFieldManagerInterface $fieldManager:
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:
\Drupal\scheduled_updates\UpdateUtils $updateUtils:
\Drupal\Core\Session\AccountSwitcherInterface $accountSwitcher:
Overrides PluginBase::__construct
File
- src/
Plugin/ BaseUpdateRunner.php, line 102 - Contains \Drupal\scheduled_updates\Plugin\BaseUpdateRunner.
Class
Namespace
Drupal\scheduled_updates\PluginCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManagerInterface $fieldManager, EntityTypeManagerInterface $entityTypeManager, UpdateUtils $updateUtils, AccountSwitcherInterface $accountSwitcher) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->fieldManager = $fieldManager;
$this->entityTypeManager = $entityTypeManager;
$this->updateUtils = $updateUtils;
$this->accountSwitcher = $accountSwitcher;
if (!empty($configuration['updater_type'])) {
$this->scheduled_update_type = ScheduledUpdateType::load($configuration['updater_type']);
}
}