Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityComment.php

function EntityComment::create

Overrides EntityContentBase::create

File

core/modules/comment/src/Plugin/migrate/destination/EntityComment.php, line 68

Class

EntityComment
Comment entity destination.

Namespace

Drupal\comment\Plugin\migrate\destination

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, ?MigrationInterface $migration = NULL) {
    $entity_type = static::getEntityTypeId($plugin_id);
    return new static($configuration, $plugin_id, $plugin_definition, $migration, $container->get('entity_type.manager')
        ->getStorage($entity_type), array_keys($container->get('entity_type.bundle.info')
        ->getBundleInfo($entity_type)), $container->get('entity_field.manager'), $container->get('plugin.manager.field.field_type'), $container->get('state'), $container->get('account_switcher'));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal