class Banana

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

41 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

... 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 {

}

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