Mercurial > hg > cmmr2012-drupal-site
view core/lib/Drupal/Component/Annotation/PluginID.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line source
<?php namespace Drupal\Component\Annotation; /** * Defines a Plugin annotation object that just contains an ID. * * @Annotation */ class PluginID extends AnnotationBase { /** * The plugin ID. * * When an annotation is given no key, 'value' is assumed by Doctrine. * * @var string */ public $value; /** * {@inheritdoc} */ public function get() { return [ 'id' => $this->value, 'class' => $this->class, 'provider' => $this->provider, ]; } /** * {@inheritdoc} */ public function getId() { return $this->value; } }