MenuTest.php

Same filename in this branch
  1. 10 core/modules/jsonapi/tests/src/Functional/MenuTest.php
  2. 10 core/modules/views/tests/src/Functional/Wizard/MenuTest.php
  3. 10 core/modules/system/tests/src/Kernel/Plugin/migrate/source/MenuTest.php
Same filename in other branches
  1. 9 core/modules/jsonapi/tests/src/Functional/MenuTest.php
  2. 9 core/modules/views/tests/src/Functional/Wizard/MenuTest.php
  3. 9 core/modules/system/tests/src/Kernel/Plugin/migrate/source/MenuTest.php
  4. 8.9.x core/modules/jsonapi/tests/src/Functional/MenuTest.php
  5. 8.9.x core/modules/views/tests/src/Functional/Wizard/MenuTest.php
  6. 8.9.x core/modules/system/tests/src/Kernel/Plugin/migrate/source/MenuTest.php
  7. 11.x core/modules/jsonapi/tests/src/Functional/MenuTest.php
  8. 11.x core/modules/views/tests/src/Functional/Wizard/MenuTest.php
  9. 11.x core/modules/system/tests/src/Kernel/Plugin/migrate/source/MenuTest.php
  10. 11.x core/modules/migrate_drupal_ui/tests/modules/migrate_drupal_message_test/src/Plugin/migrate/source/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.