blacksmith-8.x-1.x-dev/src/Blacksmith/EntityImporter/MediaEntityImporter.php

src/Blacksmith/EntityImporter/MediaEntityImporter.php
<?php

namespace Drupal\blacksmith\Blacksmith\EntityImporter;

use Drupal\blacksmith\BlacksmithItem;

/**
 * Class MediaEntityImporter.
 *
 * @package Drupal\blacksmith\Blacksmith\EntityImporter
 */
class MediaEntityImporter extends EntityImporter {

  /**
   * {@inheritdoc}
   */
  protected function getFieldDefinitions(BlacksmithItem $item) : array {
    $fieldDefinitions = parent::getFieldDefinitions($item);
    unset($fieldDefinitions['bundle']);

    return $fieldDefinitions;
  }

}

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

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