class 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
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[[api-linebreak]]
 - AttributeTest::testChainAddRemoveClasses in core/
tests/ Drupal/ Tests/ Core/ Template/ AttributeTest.php  - Tests removing class attributes with the Attribute helper methods. @covers ::removeClass[[api-linebreak]] @covers ::addClass[[api-linebreak]]
 - 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.