MenuTest.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/jsonapi/tests/src/Functional/MenuTest.php
- 9 core/modules/views/tests/src/Functional/Wizard/MenuTest.php
- 9 core/modules/system/tests/src/Kernel/Plugin/migrate/source/MenuTest.php
- 8.9.x core/modules/jsonapi/tests/src/Functional/MenuTest.php
- 8.9.x core/modules/views/tests/src/Functional/Wizard/MenuTest.php
- 8.9.x core/modules/system/tests/src/Kernel/Plugin/migrate/source/MenuTest.php
- 10 core/modules/jsonapi/tests/src/Functional/MenuTest.php
- 10 core/modules/views/tests/src/Functional/Wizard/MenuTest.php
- 10 core/modules/system/tests/src/Kernel/Plugin/migrate/source/MenuTest.php
- 10 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\sourceFile
-
core/
modules/ migrate_drupal_ui/ tests/ modules/ migrate_drupal_message_test/ src/ Plugin/ migrate/ source/ MenuTest.php
View source
<?php
declare (strict_types=1);
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.