Drupal 8  8.0.2
EntityUser Class Reference
Inheritance diagram for EntityUser:

Public Member Functions

 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles, EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager, PasswordInterface $password)
 
 import (Row $row, array $old_destination_id_values=array())
 
- Public Member Functions inherited from EntityContentBase
 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles, EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager)
 
 import (Row $row, array $old_destination_id_values=array())
 
 getIds ()
 
- Public Member Functions inherited from Entity
 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles)
 
 fields (MigrationInterface $migration=NULL)
 
 rollback (array $destination_identifier)
 
 calculateDependencies ()
 
- Public Member Functions inherited from DestinationBase
 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration)
 
 rollbackAction ()
 
 checkRequirements ()
 
 rollback (array $destination_identifier)
 
 supportsRollback ()
 
- Public Member Functions inherited from PluginInspectionInterface
 getPluginId ()
 
 getPluginDefinition ()
 

Static Public Member Functions

static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration=NULL)
 
- Static Public Member Functions inherited from EntityContentBase
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration=NULL)
 
- Static Public Member Functions inherited from Entity
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration=NULL)
 
- Static Public Member Functions inherited from ContainerFactoryPluginInterface
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 

Protected Member Functions

 processStubRow (Row $row)
 
- Protected Member Functions inherited from EntityContentBase
 save (ContentEntityInterface $entity, array $old_destination_id_values=array())
 
 updateEntity (EntityInterface $entity, Row $row)
 
- Protected Member Functions inherited from Entity
 getEntity (Row $row, array $old_destination_id_values)
 
 getEntityId (Row $row)
 
 getKey ($key)
 
- Protected Member Functions inherited from DestinationBase
 setRollbackAction (array $id_map)
 

Protected Attributes

 $password
 
- Protected Attributes inherited from EntityContentBase
 $entityManager
 
 $fieldTypeManager
 
- Protected Attributes inherited from Entity
 $storage
 
 $bundles
 
- Protected Attributes inherited from DestinationBase
 $supportsRollback = FALSE
 
 $rollbackAction = MigrateIdMapInterface::ROLLBACK_DELETE
 
 $migration
 

Additional Inherited Members

- Static Protected Member Functions inherited from Entity
static getEntityTypeId ($plugin_id)
 

Detailed Description

( id = "entity:user" )

Constructor & Destructor Documentation

__construct ( array  $configuration,
  $plugin_id,
  $plugin_definition,
MigrationInterface  $migration,
EntityStorageInterface  $storage,
array  $bundles,
EntityManagerInterface  $entity_manager,
FieldTypePluginManagerInterface  $field_type_manager,
PasswordInterface  $password 
)

Builds an user entity destination.

Parameters
array$configurationA configuration array containing information about the plugin instance.
string$plugin_idThe plugin_id for the plugin instance.
mixed$plugin_definitionThe plugin implementation definition.
MigrationInterface$migrationThe migration.
EntityStorageInterface$storageThe storage for this entity type.
array$bundlesThe list of bundles this entity type has.
\Drupal\migrate\Plugin\MigratePluginManager$plugin_managerThe migrate plugin manager.
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager service.
\Drupal\Core\Field\FieldTypePluginManagerInterface$field_type_managerThe field type plugin manager service.
\Drupal\Core\Password\PasswordInterface$passwordThe password service.

Member Function Documentation

static create ( ContainerInterface  $container,
array  $configuration,
  $plugin_id,
  $plugin_definition,
MigrationInterface  $migration = NULL 
)
static

{}

import ( Row  $row,
array  $old_destination_id_values = array() 
)

{Import the row.Derived classes must implement import(), to construct one new object (pre-populated) using ID mappings in the Migration.

Parameters
\Drupal\migrate\Row$rowThe row object.
array$old_destination_id_values(optional) The old destination IDs. Defaults to an empty array.
Returns
mixed The entity ID or an indication of success.
}

Exceptions
\Drupal\migrate\MigrateException

Implements MigrateDestinationInterface.

processStubRow ( Row  $row)
protected

{}

References Drupal\entityManager(), EmailItem\generateSampleValue(), Row\getDestinationProperty(), Entity\getKey(), Row\setDestinationProperty(), Unicode\strlen(), and Unicode\substr().

Here is the call graph for this function:


The documentation for this class was generated from the following file: