namespace Drupal\plugin_test\Plugin\plugin_test\fruit

Same name in other branches
  1. 10 Drupal\plugin_test\Plugin\plugin_test\fruit
  2. 11.x Drupal\plugin_test\Plugin\plugin_test\fruit
  3. 8.9.x Drupal\plugin_test\Plugin\plugin_test\fruit
Object name File name Summary
Apple core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Apple.php Plugin annotation

@Plugin(
id = "apple",
label = "Apple",
color = "green"
)
Banana core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php Plugin annotation

@Plugin(
id = "banana",
label = "Banana",
color = "yellow",
uses = {
"bread" = @Translation("Banana bread"),
"loaf" = @PluralTranslation(
singular = "@count loaf",
plural = "@count loaves"
)
}
)
Cherry core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Cherry.php Plugin annotation

@Plugin(
id = "cherry",
label = "Cherry",
color = "red"
)
ExtendingNonInstalledClass core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/ExtendingNonInstalledClass.php Plugin annotation

@Plugin(
id = "extending_non_installed_class",
label = "A plugin whose class is extending from a non-installed module class",
color = "pink",
)
FruitInterface core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/FruitInterface.php Provides an interface for test plugins.
Kale core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Kale.php Plugin annotation

@Plugin(
id = "kale",
label = "Kale",
color = "green"
)
NonAnnotatedClass core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/NonAnnotatedClass.php
Orange core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Orange.php Plugin annotation

@Plugin(
id = "orange",
label = "Orange",
color = "orange"
)

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