MenuTest.php

Namespace

Drupal\migrate_drupal_message_test\Plugin\migrate\source

File

core/modules/migrate_drupal_ui/tests/modules/migrate_drupal_message_test/src/Plugin/migrate/source/MenuTest.php

View source
<?php

namespace Drupal\migrate_drupal_message_test\Plugin\migrate\source;

use Drupal\system\Plugin\migrate\source\Menu;

/**
 * Source plugin with a source id removed from the array returned by fields().
 *
 * @MigrateSource(
 *   id = "d7_menu_test",
 *   source_module = "menu"
 * )
 */
class MenuTest extends Menu {
  
  /**
   * {@inheritdoc}
   */
  public function fields() {
    $fields = parent::fields();
    unset($fields['menu_name']);
    return $fields;
  }

}

Classes

Title Deprecated Summary
MenuTest Source plugin with a source id removed from the array returned by fields().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.