You are here

public function PluginExample::get in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php \Drupal\plugin_test\Plugin\Annotation\PluginExample::get()

Gets the value of an annotation.

Overrides AnnotationInterface::get

File

core/modules/system/tests/modules/plugin_test/src/Plugin/Annotation/PluginExample.php, line 36
Contains \Drupal\plugin_test\Plugin\Annotation\PluginExample.

Class

PluginExample
Defines a custom Plugin annotation.

Namespace

Drupal\plugin_test\Plugin\Annotation

Code

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