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

Breadcrumb

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

function DocBlock::isTemplateStart

Returns whether this DocBlock is the start of a Template section.

A Docblock may serve as template for a series of subsequent DocBlocks. This is indicated by a special marker (`#@+`) that is appended directly after the opening `` of a DocBlock.

An example of such an opening is:

``` #@+

  • My DocBlock
  • /

```

The description and tags (not the summary!) are copied onto all subsequent DocBlocks and also applied to all elements that follow until another DocBlock is found that contains the closing marker (`#@-`).

See also

self::isTemplateEnd() for the check whether a closing marker was provided.

File

vendor/phpdocumentor/reflection-docblock/src/DocBlock.php, line 117

Class

DocBlock

Namespace

phpDocumentor\Reflection

Code

public function isTemplateStart() : bool {
    return $this->isTemplateStart;
}
RSS feed
Powered by Drupal