You are here

PerComponentEntityDisplay.php in Zircon Profile 8

File

core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.php
View source
<?php

/**
 * @file
 * Contains \Drupal\migrate\Plugin\migrate\destination\PerComponentEntityDisplay.
 */
namespace Drupal\migrate\Plugin\migrate\destination;


/**
 * This class imports one component of an entity display.
 *
 * @MigrateDestination(
 *   id = "component_entity_display"
 * )
 */
class PerComponentEntityDisplay extends ComponentEntityDisplayBase {
  const MODE_NAME = 'view_mode';

  /**
   * {@inheritdoc}
   */
  protected function getEntity($entity_type, $bundle, $view_mode) {
    return entity_get_display($entity_type, $bundle, $view_mode);
  }

}

Classes

Namesort descending Description
PerComponentEntityDisplay This class imports one component of an entity display.