You are here

class Banana in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php \Drupal\plugin_test\Plugin\plugin_test\fruit\Banana
  2. 9 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

Expanded class hierarchy of Banana

11 string references to 'Banana'
AnnotatedClassDiscoveryTest::setUp in core/tests/Drupal/KernelTests/Core/Plugin/Discovery/AnnotatedClassDiscoveryTest.php
BlockManagerTest::setUp in core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php
CategoryAutocompleteTest::providerTestAutocompleteSuggestions in core/modules/block/tests/src/Unit/CategoryAutocompleteTest.php
Data provider for testAutocompleteSuggestions().
CustomDirectoryAnnotatedClassDiscoveryTest::setUp in core/tests/Drupal/KernelTests/Core/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php
DefaultPluginManagerTest::setUp in core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php

... See full list

File

core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php, line 19

Namespace

Drupal\plugin_test\Plugin\plugin_test\fruit
View source
class Banana implements FruitInterface {

}

Members