You are here

class BundlePluginTest in Entity API 8

Same name in this branch
  1. 8 tests/src/Kernel/BundlePluginTest.php \Drupal\Tests\entity\Kernel\BundlePluginTest
  2. 8 tests/modules/entity_module_bundle_plugin_test/src/Annotation/BundlePluginTest.php \Drupal\entity_module_bundle_plugin_test\Annotation\BundlePluginTest

Defines the BundlePluginTest annotation object.

Plugin namespace: Plugin\BundlePluginTest.

Hierarchy

Expanded class hierarchy of BundlePluginTest

See also

Plugin API

2 classes are annotated with BundlePluginTest
First in tests/modules/entity_module_bundle_plugin_test/src/Plugin/BundlePluginTest/First.php
Provides the first bundle plugin.
Second in tests/modules/entity_module_bundle_plugin_examples_test/src/Plugin/BundlePluginTest/Second.php
Provides the second bundle plugin.

File

tests/modules/entity_module_bundle_plugin_test/src/Annotation/BundlePluginTest.php, line 16

Namespace

Drupal\entity_module_bundle_plugin_test\Annotation
View source
class BundlePluginTest extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The plugin label.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

}

Members

Namesort descending Modifiers Type Description Overrides
BundlePluginTest::$id public property The plugin ID.
BundlePluginTest::$label public property The plugin label.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2