entity_legal-4.0.x-dev/src/Plugin/migrate/destination/EntityLegalDocumentVersion.php

src/Plugin/migrate/destination/EntityLegalDocumentVersion.php
<?php

declare(strict_types=1);

namespace Drupal\entity_legal\Plugin\migrate\destination;

use Drupal\migrate\Plugin\migrate\destination\EntityContentBase;

/**
 * Drupal entity legal document version migration destination plugin.
 *
 * @MigrateDestination(
 *   id = "entity_legal_document_version",
 *   provider = "entity_legal"
 * )
 */
class EntityLegalDocumentVersion extends EntityContentBase {

  /**
   * {@inheritdoc}
   */
  protected static function getEntityTypeId($plugin_id): string {
    return 'entity_legal_document_version';
  }

  /**
   * {@inheritdoc}
   */
  public function getIds(): array {
    $ids['name']['type'] = 'string';
    return $ids;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc