Banana.php
Same filename in other branches
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
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.