class ExampleWithAttributeAndAnnotation
Provides a test plugin with an annotation and attribute.
This is used to test discovery will pick up attributes over annotations.
Plugin annotation
@PluginExample(
id = "example_annotation_not_attribute"
)
Attributes
#[PluginExample('example_attribute_not_annotation')]
Hierarchy
- class \Drupal\plugin_test\Plugin\plugin_test\custom_annotation\ExampleWithAttributeAndAnnotation
Expanded class hierarchy of ExampleWithAttributeAndAnnotation
File
-
core/
modules/ system/ tests/ modules/ plugin_test/ src/ Plugin/ plugin_test/ custom_annotation/ ExampleWithAttributeAndAnnotation.php, line 18
Namespace
Drupal\plugin_test\Plugin\plugin_test\custom_annotationView source
class ExampleWithAttributeAndAnnotation {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.