function ContentEntity::create
Instantiates a new instance of the implementing class using autowiring.
Return value
static
Overrides PluginBase::create
1 call to ContentEntity::create()
- ContentEntityConstructorTest::testConstructor in core/modules/ migrate/ tests/ src/ Kernel/ Plugin/ source/ ContentEntityConstructorTest.php 
- Tests the constructor.
File
- 
              core/modules/ migrate/ src/ Plugin/ migrate/ source/ ContentEntity.php, line 125 
Class
- ContentEntity
- Source plugin to get content entities from the current version of Drupal.
Namespace
Drupal\migrate\Plugin\migrate\sourceCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, ?MigrationInterface $migration = NULL) : static {
  return new static($configuration, $plugin_id, $plugin_definition, $migration, $container->get('entity_type.manager'), $container->get('entity_field.manager'), $container->get('entity_type.bundle.info'));
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
