Banana.php

Same filename in other branches
  1. 9 core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php
  2. 10 core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php
  3. 11.x core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php

Namespace

Drupal\plugin_test\Plugin\plugin_test\fruit

File

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.