Showing 7 of 1,975 result(s)
…ts Stillat\BladeParser\Nodes\PhpTagNode instances when it parses traditional PHP tags within a Blade template. Each PhpTagNode node is categorized in one of two ways: PhpOpenTag, : Indicates the PHP tag started with the, <?php, tag.,...
The @verbatim and @endverbatim pair is represented by the Stillat\BladeParser\Nodes\VerbatimNode . This structure type is handled internally within the parser, and the library ignores any improper usage of the @verbatim or @endverbatim directives...
Registers a single custom component tag name. Argument Description $tagName The component tag name. 1 <?php 2 3 use Stillat\BladeParser\Parser\DocumentParser ; 4 5 public function registerCustomComponentTag ( 6 string $tagName 7 ) :...
Registers multiple custom component tag names. Argument Description $tagNames The tag names. 1 <?php 2 3 use Stillat\BladeParser\Parser\DocumentParser ; 4 5 public function registerCustomComponentTags ( 6 array $tagNames 7 ) : DocumentParser ;
Registers a single custom directive name. Argument Description $name The directive name. 1 <?php 2 3 public function registerCustomDirective ( 4 string $name 5 ) : void ;
Retrieves the first error. If the error source contains multiple types of errors, such as parser errors and validation errors, all errors will be considered. 1 <?php 2 3 use Stillat\BladeParser\Errors\BladeError ; 4 5 public function...
Tests if the document contains a directive with the provided name. Argument Description $name The directive name. 1 <?php 2 3 public function hasDirective ( 4 string $name 5 ) : bool ; Example Use 1 <?php 2 3 use...