You are here

public function AnnotationObject::offsetSet in Markdown 8.2

2 calls to AnnotationObject::offsetSet()
AnnotationObject::doMerge in src/Annotation/AnnotationObject.php
Merges values with this plugin.
AnnotationObject::__set in src/Annotation/AnnotationObject.php

File

src/Annotation/AnnotationObject.php, line 333

Class

AnnotationObject
Base annotation class for retrieving the annotation as an object.

Namespace

Drupal\markdown\Annotation

Code

public function offsetSet($offset, $value = NULL) {
  if (array_key_exists($offset, $this->_deprecatedProperties)) {
    $this->_deprecated[$offset] = $this
      ->normalizeValue($value);
    $this
      ->triggerDeprecation($offset);
  }
  else {
    $this->{$offset} = $this
      ->normalizeValue($value);
  }
}