You are here

public function AnnotationObject::merge in Markdown 8.2

Merges values with this plugin.

Parameters

array|\Traversable $values: The values to merge.

array $excludedProperties: Optional. The properties to exclude when merging values.

Return value

static

File

src/Annotation/AnnotationObject.php, line 272

Class

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

Namespace

Drupal\markdown\Annotation

Code

public function merge($values, array $excludedProperties = []) {

  // Do the merge, merging any excluded properties with the protected
  // properties. This ensures that no public consumer can override them.
  return $this
    ->doMerge($values, array_merge($excludedProperties, $this
    ->protectedProperties()));
}