3 namespace Drupal\migrate\Plugin\migrate\destination;
6 * Provides entity view mode destination plugin.
8 * See EntityConfigBase for the available configuration options.
9 * @see \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase
15 * plugin: d7_view_mode
19 * targetEntityType: entity_type
21 * plugin: entity:entity_view_mode
24 * This will add the results of the process ("mode", "label" and
25 * "targetEntityType") to an "entity_view_mode" entity.
27 * @MigrateDestination(
28 * id = "entity:entity_view_mode"
31 class EntityViewMode extends EntityConfigBase {
36 public function getIds() {
37 $ids['targetEntityType']['type'] = 'string';
38 $ids['mode']['type'] = 'string';
45 public function rollback(array $destination_identifier) {
46 $destination_identifier = implode('.', $destination_identifier);
47 parent::rollback([$destination_identifier]);