You are here

public function ModifyEntityValues::__construct in Views Bulk Edit 8.2

Object constructor.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: The plugin Id.

mixed $plugin_definition: Plugin definition.

\Drupal\views_bulk_operations\Service\ViewsbulkOperationsViewData $viewDataService: The VBO view data service.

\Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionProcessor $actionProcessor: The VBO action processor.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo: Bundle info object.

\Drupal\Core\Database\Connection $database: Database connection.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Drupal\Core\Session\AccountInterface $currentUser: The current user.

\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The entity repository service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager service.

File

src/Plugin/Action/ModifyEntityValues.php, line 91

Class

ModifyEntityValues
Modify entity field values.

Namespace

Drupal\views_bulk_edit\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ViewsbulkOperationsViewData $viewDataService, ViewsBulkOperationsActionProcessor $actionProcessor, EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $bundleInfo, Connection $database, TimeInterface $time, AccountInterface $currentUser, EntityRepositoryInterface $entityRepository, EntityFieldManagerInterface $entityFieldManager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->viewDataService = $viewDataService;
  $this->actionProcessor = $actionProcessor;
  $this->entityTypeManager = $entityTypeManager;
  $this->bundleInfo = $bundleInfo;
  $this->database = $database;
  $this->time = $time;
  $this->currentUser = $currentUser;
  $this->entityRepository = $entityRepository;
  $this->entityFieldManager = $entityFieldManager;
}