function EntityUserRole::create
Same name in other branches
- 10 core/modules/user/src/Plugin/migrate/destination/EntityUserRole.php \Drupal\user\Plugin\migrate\destination\EntityUserRole::create()
Overrides EntityConfigBase::create
File
-
core/
modules/ user/ src/ Plugin/ migrate/ destination/ EntityUserRole.php, line 57
Class
- EntityUserRole
- Provides a destination plugin for migrating user role entities.
Namespace
Drupal\user\Plugin\migrate\destinationCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, ?MigrationInterface $migration = NULL) {
$entity_type_id = static::getEntityTypeId($plugin_id);
return new static($configuration, $plugin_id, $plugin_definition, $migration, $container->get('entity_type.manager')
->getStorage($entity_type_id), array_keys($container->get('entity_type.bundle.info')
->getBundleInfo($entity_type_id)), $container->get('language_manager'), $container->get('config.factory'), array_keys($container->get('user.permissions')
->getPermissions()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.