You are here

public function Entity::__construct in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/validator/Tests/Fixtures/Entity.php \Symfony\Component\Validator\Tests\Fixtures\Entity::__construct()
  2. 8.0 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::__construct()
  3. 8.0 core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::__construct()
  4. 8.0 core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::__construct()
  5. 8.0 core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::__construct()
Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::__construct()

Construct a new 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.

MigrationInterface $migration: The migration.

EntityStorageInterface $storage: The storage for this entity type.

array $bundles: The list of bundles this entity type has.

Overrides DestinationBase::__construct

2 calls to Entity::__construct()
EntityContentBase::__construct in core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php
Constructs a content entity.
EntityFieldStorageConfig::__construct in core/modules/migrate_drupal/src/Plugin/migrate/destination/EntityFieldStorageConfig.php
Construct a new plugin.
2 methods override Entity::__construct()
EntityContentBase::__construct in core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php
Constructs a content entity.
EntityFieldStorageConfig::__construct in core/modules/migrate_drupal/src/Plugin/migrate/destination/EntityFieldStorageConfig.php
Construct a new plugin.

File

core/modules/migrate/src/Plugin/migrate/destination/Entity.php, line 57
Contains \Drupal\migrate\Plugin\migrate\destination\Entity.

Class

Entity
Plugin annotation @MigrateDestination( id = "entity", deriver = "Drupal\migrate\Plugin\Derivative\MigrateEntity" )

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
  $this->storage = $storage;
  $this->bundles = $bundles;
  $this->supportsRollback = TRUE;
}