Commit f711ad88 authored by webchick's avatar webchick

Issue #1811540 by xjm: Fixed Prevent @endlink from being parsed as an annotation.

parent 35e917e0
......@@ -42,6 +42,8 @@ public function getDefinition($plugin_id) {
public function getDefinitions() {
$definitions = array();
$reader = new AnnotationReader();
// Prevent @endlink from being parsed as an annotation.
$reader->addGlobalIgnoredName('endlink');
// Register the namespace of classes that can be used for annotations.
AnnotationRegistry::registerAutoloadNamespace('Drupal\Core\Annotation', array(DRUPAL_ROOT . '/core/lib'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment