Property | Type | Description | |
---|---|---|---|
$registrations | array | Registrations are the tags that have been registered from this node's traversal |
Method | Description | |
---|---|---|
__construct ( |
Create a new RegisterDeviseTags visitor | |
afterTraverse ( array $nodes ) : array | Runs after all the nodes have been examined | |
enterNode ( PhpParser\Node $node ) : void | We are examine this node for data-devise tags inside of the html. We only need to check out InlineHTML nodes |
Method | Description | |
---|---|---|
addDvsPageDataInitializeStmt ( ) | [addDvsPageDataInitializeStmt description] | |
getAppMakeRegisterString ( |
Creates a string of App::make register statements for us | |
getNewDeviseTagString ( |
Creates a string from tag parameters which will be used to rewrite the data-devise html | |
parseNode ( string $html ) : string | Parses the node of html for us | |
registerDeviseTag ( |
Register a devise tag, and also replaces the data-devise html with the cid stuff |
public __construct ( |
||
$DeviseParser |
protected addDvsPageDataInitializeStmt ( ) |
public afterTraverse ( array $nodes ) : array | ||
$nodes | array | |
return | array |
protected getAppMakeRegisterString ( |
||
$tag | ||
return | string |
protected getNewDeviseTagString ( |
||
$tag | ||
return | string |
protected registerDeviseTag ( |
||
$tag | ||
return | string |
protected array $registrations | ||
return | array |