public function TestEntityFile::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/file/src/Tests/Migrate/EntityFileTest.php \Drupal\file\Tests\Migrate\TestEntityFile::__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\Entity\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\EntityManagerInterface $entity_manager: The entity manager service.
\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type plugin manager service.
Overrides EntityFile::__construct
File
- core/
modules/ file/ src/ Tests/ Migrate/ EntityFileTest.php, line 270 - Contains \Drupal\file\Tests\Migrate\EntityFileTest.
Class
Namespace
Drupal\file\Tests\MigrateCode
public function __construct($configuration) {
$configuration += array(
'source_base_path' => '',
'source_path_property' => 'filepath',
'destination_path_property' => 'uri',
'move' => FALSE,
'urlencode' => FALSE,
);
$this->configuration = $configuration;
// We need a mock entity to be passed to save to prevent strict exceptions.
$this->mockEntity = EntityTest::create();
}