Commit 2735b59b authored by catch's avatar catch

Issue #2042545 by tim.plunkett: Fixed Annotation parsing should ignore @file doxygen.

parent fe7acd41
......@@ -78,6 +78,7 @@ public function getDefinitions() {
$reader = new AnnotationReader();
// Prevent @endlink from being parsed as an annotation.
$reader->addGlobalIgnoredName('endlink');
$reader->addGlobalIgnoredName('file');
// Register the namespaces of classes that can be used for annotations.
AnnotationRegistry::registerAutoloadNamespaces($this->getAnnotationNamespaces());
......
<?php
/**
* @file
* Contains \Drupal\plugin_test\Plugin\plugin_test\fruit\NonAnnotatedClass.
*/
namespace Drupal\plugin_test\Plugin\plugin_test\fruit;
class NonAnnotatedClass {}
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