class Corn

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Plugin/Fixtures/vegetable/Corn.php \Drupal\Tests\Component\Plugin\Fixtures\vegetable\Corn
  2. 10 core/tests/Drupal/Tests/Component/Plugin/Fixtures/vegetable/Corn.php \Drupal\Tests\Component\Plugin\Fixtures\vegetable\Corn
  3. 11.x core/tests/Drupal/Tests/Component/Plugin/Fixtures/vegetable/Corn.php \Drupal\Tests\Component\Plugin\Fixtures\vegetable\Corn

Plugin annotation


@Plugin(
  id = "corn",
  label = "Corn",
  color = "yellow"
)

Hierarchy

Expanded class hierarchy of Corn

1 file declares its use of Corn
DefaultFactoryTest.php in core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php
8 string references to 'Corn'
DefaultFactoryTest::testGetPluginClassWithInterfaceAndInvalidClassWithArrayPluginDefinition in core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php
Tests getPluginClass() with a required interface but no implementation.
DefaultFactoryTest::testGetPluginClassWithInterfaceAndInvalidClassWithObjectPluginDefinition in core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php
Tests getPluginClass() with a required interface but no implementation.
DefaultFactoryTest::testGetPluginClassWithInterfaceWithArrayPluginDefinition in core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php
Tests getPluginClass() with a required interface.
DefaultFactoryTest::testGetPluginClassWithInterfaceWithObjectPluginDefinition in core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php
Tests getPluginClass() with a required interface.
DefaultFactoryTest::testGetPluginClassWithMissingClassWithArrayPluginDefinition in core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php
Tests getPluginClass() with a missing class definition.

... See full list

File

core/tests/Drupal/Tests/Component/Plugin/Fixtures/vegetable/Corn.php, line 12

Namespace

Drupal\Tests\Component\Plugin\Fixtures\vegetable
View source
class Corn implements VegetableInterface {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.