Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SimpleAnnotationReader.php

function 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);
}
RSS feed
Powered by Drupal