function EntityContentComplete::__construct
Constructs a content entity.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\migrate\Plugin\MigrationInterface $migration: The migration entity.
\Drupal\Core\Entity\EntityStorageInterface $storage: The storage for this entity type.
array $bundles: The list of bundles this entity type has.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type plugin manager service.
\Drupal\Core\Session\AccountSwitcherInterface $account_switcher: The account switcher service.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface|null $entity_type_bundle_info: The entity type bundle info service.
Overrides EntityContentBase::__construct
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityContentComplete.php, line 36
Class
- EntityContentComplete
- Provides a destination for migrating the entire entity revision table.
Namespace
Drupal\migrate\Plugin\migrate\destinationCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles, EntityFieldManagerInterface $entity_field_manager, FieldTypePluginManagerInterface $field_type_manager, ?AccountSwitcherInterface $account_switcher = NULL, ?EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL) {
@trigger_error(__CLASS__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3533565', E_USER_DEPRECATED);
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $storage, $bundles, $entity_field_manager, $field_type_manager, $account_switcher, $entity_type_bundle_info);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.