Same filename and directory in other branches
  1. 8.9.x core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php
  2. 9 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

Namesort descending Description
Banana Plugin annotation @Plugin( id = "banana", label = "Banana", color = "yellow", uses = { "bread" = @Translation("Banana bread"), "loaf" = @PluralTranslation( singular = "@count loaf", plural = "@count loaves" ) } )