class BundlePluginTest in Entity API 8
Same name in this branch
- 8 tests/src/Kernel/BundlePluginTest.php \Drupal\Tests\entity\Kernel\BundlePluginTest
- 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
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\entity_module_bundle_plugin_test\Annotation\BundlePluginTest
Expanded class hierarchy of BundlePluginTest
See also
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\AnnotationView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BundlePluginTest:: |
public | property | The plugin ID. | |
BundlePluginTest:: |
public | property | The plugin label. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |