class Example1

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/custom_annotation/Example1.php \Drupal\plugin_test\Plugin\plugin_test\custom_annotation\Example1
  2. 10 core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/custom_annotation/Example1.php \Drupal\plugin_test\Plugin\plugin_test\custom_annotation\Example1
  3. 11.x core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/custom_annotation/Example1.php \Drupal\plugin_test\Plugin\plugin_test\custom_annotation\Example1

Provides a test plugin with a custom annotation.

Plugin annotation


@PluginExample(
  id = "example_1",
  custom = "John"
)

Hierarchy

  • class \Drupal\plugin_test\Plugin\plugin_test\custom_annotation\Example1

Expanded class hierarchy of Example1

5 string references to 'Example1'
DefaultMenuLinkTreeManipulatorsTest::mockTree in core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php
Creates a mock tree.
DefaultMenuLinkTreeManipulatorsTest::testCheckAccess in core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php
Tests the checkAccess() tree manipulator.
MenuLinkTreeTest::providerTestBuildCacheability in core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php
Provides the test cases to test for ::testBuildCacheability().
MenuLinkTreeTest::testCreateLinksInMenu in core/tests/Drupal/KernelTests/Core/Menu/MenuLinkTreeTest.php
Tests creating links with an expected tree structure.
SystemMenuBlockTest::setUp in core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php

File

core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/custom_annotation/Example1.php, line 13

Namespace

Drupal\plugin_test\Plugin\plugin_test\custom_annotation
View source
class Example1 {

}

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