You are here

private function AnnotationObject::triggerDeprecation in Markdown 8.2

Triggers a deprecation notice for a given property.

Parameters

string $name: The name of the property.

2 calls to AnnotationObject::triggerDeprecation()
AnnotationObject::offsetGet in src/Annotation/AnnotationObject.php
AnnotationObject::offsetSet in src/Annotation/AnnotationObject.php

File

src/Annotation/AnnotationObject.php, line 371

Class

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

Namespace

Drupal\markdown\Annotation

Code

private function triggerDeprecation($name) {
  if (isset($this->_deprecatedProperties[$name]) && !isset($this->_triggeredDeprecations[$name]) && isset($this->_deprecated[$name])) {
    @trigger_error($this->_deprecatedProperties[$name], E_USER_DEPRECATED);

    // phpcs:ignore
    $this->_triggeredDeprecations[$name] = TRUE;
  }
}