You are here

class Update in Lightning Core 8

Same name and namespace in other branches
  1. 8.5 src/Annotation/Update.php \Drupal\lightning_core\Annotation\Update
  2. 8.2 src/Annotation/Update.php \Drupal\lightning_core\Annotation\Update
  3. 8.3 src/Annotation/Update.php \Drupal\lightning_core\Annotation\Update
  4. 8.4 src/Annotation/Update.php \Drupal\lightning_core\Annotation\Update

Defines a plugin annotation that contains only a target version number.

Hierarchy

Expanded class hierarchy of Update

1 file declares its use of Update
UpdateManager.php in src/UpdateManager.php
1 string reference to 'Update'
UpdateManager::__construct in src/UpdateManager.php
UpdateCommand constructor.

File

src/Annotation/Update.php, line 12

Namespace

Drupal\lightning_core\Annotation
View source
class Update extends PluginID {

  /**
   * {@inheritdoc}
   */
  public function getId() {
    return $this
      ->getProvider() . ':' . parent::getId();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AnnotationBase::$class protected property The class used for this annotated class.
AnnotationBase::$id public property The annotated class ID. 1
AnnotationBase::$provider protected property The provider of the annotated class.
AnnotationBase::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
AnnotationBase::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
AnnotationBase::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
AnnotationBase::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
PluginID::$value public property The plugin ID.
PluginID::get public function Gets the value of an annotation. Overrides AnnotationInterface::get
Update::getId public function Gets the unique ID for this annotated class. Overrides PluginID::getId