Same filename in this branch
- 10 core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php
- 10 core/modules/system/tests/modules/plugin_test/src/Plugin/Attribute/PluginExample.php
Same filename and directory in other branches
- 8.9.x core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php
- 9 core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php
Namespace
Drupal\plugin_test\Plugin\Annotation
File
core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php
View source
<?php
namespace Drupal\plugin_test\Plugin\Annotation;
use Drupal\Component\Annotation\AnnotationBase;
class PluginExample extends AnnotationBase {
public $id;
public $custom;
public function get() {
return [
'id' => $this->id,
'custom' => $this->custom,
'class' => $this->class,
'provider' => $this->provider,
];
}
}
Classes