class Banana
Same name in other branches
- 8.9.x core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php \Drupal\plugin_test\Plugin\plugin_test\fruit\Banana
- 10 core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php \Drupal\plugin_test\Plugin\plugin_test\fruit\Banana
- 11.x core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php \Drupal\plugin_test\Plugin\plugin_test\fruit\Banana
Plugin annotation
@Plugin(
id = "banana",
label = "Banana",
color = "yellow",
uses = {
"bread" = @Translation("Banana bread"),
"loaf" = @PluralTranslation(
singular = "@count loaf",
plural = "@count loaves"
)
}
)
Hierarchy
- class \Drupal\plugin_test\Plugin\plugin_test\fruit\Banana implements \Drupal\plugin_test\Plugin\plugin_test\fruit\FruitInterface
Expanded class hierarchy of Banana
42 string references to 'Banana'
- AnnotatedClassDiscoveryTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Plugin/ Discovery/ AnnotatedClassDiscoveryTest.php - AnnotatedClassDiscoveryTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Plugin/ Discovery/ AnnotatedClassDiscoveryTest.php - AttributeTest::testAddClasses in core/
tests/ Drupal/ Tests/ Core/ Template/ AttributeTest.php - Tests adding class attributes with the AttributeArray helper method. @covers ::addClass
- AttributeTest::testChainAddRemoveClasses in core/
tests/ Drupal/ Tests/ Core/ Template/ AttributeTest.php - Tests removing class attributes with the Attribute helper methods. @covers ::removeClass @covers ::addClass
- BlockManagerTest::setUp in core/
tests/ Drupal/ Tests/ Core/ Block/ BlockManagerTest.php
File
-
core/
modules/ system/ tests/ modules/ plugin_test/ src/ Plugin/ plugin_test/ fruit/ Banana.php, line 19
Namespace
Drupal\plugin_test\Plugin\plugin_test\fruitView source
class Banana implements FruitInterface {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.