function PluginExample::get

Same name in other branches
  1. 9 core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php \Drupal\plugin_test\Plugin\Annotation\PluginExample::get()
  2. 8.9.x core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php \Drupal\plugin_test\Plugin\Annotation\PluginExample::get()
  3. 10 core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php \Drupal\plugin_test\Plugin\Annotation\PluginExample::get()

Overrides AnnotationInterface::get

File

core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php, line 33

Class

PluginExample
Defines a custom Plugin annotation.

Namespace

Drupal\plugin_test\Plugin\Annotation

Code

public function get() {
    return [
        'id' => $this->id,
        'custom' => $this->custom,
        'class' => $this->class,
        'provider' => $this->provider,
    ];
}

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