ExampleWithAttributeAndAnnotation.php

Namespace

Drupal\plugin_test\Plugin\plugin_test\custom_annotation

File

core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/custom_annotation/ExampleWithAttributeAndAnnotation.php

View source
<?php

declare (strict_types=1);
namespace Drupal\plugin_test\Plugin\plugin_test\custom_annotation;

use Drupal\plugin_test\Plugin\Attribute\PluginExample;

/**
 * Provides a test plugin with an annotation and attribute.
 *
 * This is used to test discovery will pick up attributes over annotations.
 *
 * @PluginExample(
 *   id = "example_annotation_not_attribute"
 * )
 */
class ExampleWithAttributeAndAnnotation {

}

Classes

Title Deprecated Summary
ExampleWithAttributeAndAnnotation Provides a test plugin with an annotation and attribute.

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