Banana.php
Namespace
Drupal\plugin_test\Plugin\plugin_test\fruitFile
- 
              core/
modules/ system/ tests/ modules/ plugin_test/ src/ Plugin/ plugin_test/ fruit/ Banana.php  
View source
<?php
declare (strict_types=1);
namespace Drupal\plugin_test\Plugin\plugin_test\fruit;
/**
 * @Plugin(
 *   id = "banana",
 *   label = "Banana",
 *   color = "yellow",
 *   uses = {
 *     "bread" = @Translation("Banana bread"),
 *     "loaf" = @PluralTranslation(
 *       singular = "@count loaf",
 *       plural = "@count loaves"
 *     )
 *   }
 * )
 */
class Banana implements FruitInterface {
}
Classes
| Title | Deprecated | Summary | 
|---|---|---|
| Banana | Plugin annotation @Plugin( id = "banana", label = "Banana", color = "yellow", uses = { "bread" = @Translation("Banana bread"), "loaf" = @PluralTranslation( singular = "@count loaf", plural = "@count loaves" ) } ) | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.