hasAnyOfType | Querying Document Nodes
Tests if the document contains any node of the provided type. Argument Description $type The desired type. 1 <?php 2 3 public function hasAnyOfType ( 4 string $ type 5 ) : bool ;
Showing 10 of 1,214 results.
Tests if the document contains any node of the provided type. Argument Description $type The desired type. 1 <?php 2 3 public function hasAnyOfType ( 4 string $ type 5 ) : bool ;
Returns a value indicating if the document has any Blade comments. 1 <?php 2 3 public function hasAnyComments ( ) : bool ;
Returns a collection containing the document's validation errors. Errors added to the document via. the addValidationResult or addValidationError methods will be included in the results. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5...
Tests if any errors are present. 1 <?php 2 3 public function hasErrors ( ) : bool ;
The document class provides a wide variety of methods that we can use to help make decisions about a Blade template.
Gets the document's file path. 1 <?php 2 3 public function getFilePath ( ) : string ;
Gets the directive names. 1 <?php 2 3 public function getDirectiveNames ( ) : array ;
Removes the document instance from all attached nodes. Calling this method will remove the document instance from all nodes that currently belong to this document. This can be useful if you simply want lightweight instances and do not necessarily...
Returns a string representation of the document. This method will traverse every node in the document and call its corresponding toString() method. Any modifications made to the document's node will be represented in the results of this method...