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

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_annotation
View source
class ExampleWithAttributeAndAnnotation {

}

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