PerComponentEntityDisplay.php in Zircon Profile 8
Same filename and directory in other branches
File
core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.phpView 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
Name | Description |
---|---|
PerComponentEntityDisplay | This class imports one component of an entity display. |