function SimpleAnnotationReader::addNamespace

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::addNamespace()
  2. 8.9.x core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::addNamespace()
  3. 10 core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php \Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader::addNamespace()

Adds a namespace in which we will look for annotations.

Parameters

string $namespace:

Return value

void

File

core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php, line 91

Class

SimpleAnnotationReader
Simple Annotation Reader.

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function addNamespace($namespace) {
    $this->parser
        ->addNamespace($namespace);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.