public function PluginExample::get

Returns the value of an annotation.

Overrides AnnotationInterface::get

File

drupal/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/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,
  );
}