Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Component/Annotation/PluginID.php @ 11:bfffd8d7479a
Move drupal/core from "replace" to "require" section, to ensure Composer updates it
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:51:18 +0000 |
parents | 4c8ae668cc8c |
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; } }