src/Core/ViewHelper/AbstractConditionViewHelper.php 1 location
|
@@ 227-233 (lines=7) @@
|
| 224 |
|
* @param NodeInterface $node |
| 225 |
|
* @return bool |
| 226 |
|
*/ |
| 227 |
|
public function allowsChildNodeType(NodeInterface $node): bool |
| 228 |
|
{ |
| 229 |
|
if ($node instanceof TextNode && trim($node->getText()) === '') { |
| 230 |
|
return false; |
| 231 |
|
} |
| 232 |
|
return true; |
| 233 |
|
} |
| 234 |
|
|
| 235 |
|
/** |
| 236 |
|
* The compiled ViewHelper adds two new ViewHelper arguments: __thenClosure and __elseClosure. |
src/ViewHelpers/CaseViewHelper.php 1 location
|
@@ 70-76 (lines=7) @@
|
| 67 |
|
* @param NodeInterface $node |
| 68 |
|
* @return bool |
| 69 |
|
*/ |
| 70 |
|
public function allowsChildNodeType(NodeInterface $node): bool |
| 71 |
|
{ |
| 72 |
|
if ($node instanceof TextNode && trim($node->getText()) === '') { |
| 73 |
|
return false; |
| 74 |
|
} |
| 75 |
|
return true; |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
/** |
| 79 |
|
* @param string $argumentsName |
src/ViewHelpers/DefaultCaseViewHelper.php 1 location
|
@@ 53-59 (lines=7) @@
|
| 50 |
|
* @param NodeInterface $node |
| 51 |
|
* @return bool |
| 52 |
|
*/ |
| 53 |
|
public function allowsChildNodeType(NodeInterface $node): bool |
| 54 |
|
{ |
| 55 |
|
if ($node instanceof TextNode && trim($node->getText()) === '') { |
| 56 |
|
return false; |
| 57 |
|
} |
| 58 |
|
return true; |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
/** |
| 62 |
|
* @param string $argumentsName |
src/ViewHelpers/RenderViewHelper.php 1 location
|
@@ 123-129 (lines=7) @@
|
| 120 |
|
* @param NodeInterface $node |
| 121 |
|
* @return bool |
| 122 |
|
*/ |
| 123 |
|
public function allowsChildNodeType(NodeInterface $node): bool |
| 124 |
|
{ |
| 125 |
|
if ($node instanceof TextNode && trim($node->getText()) === '') { |
| 126 |
|
return false; |
| 127 |
|
} |
| 128 |
|
return true; |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
/** |
| 132 |
|
* @return mixed |
src/ViewHelpers/SectionViewHelper.php 1 location
|
@@ 107-113 (lines=7) @@
|
| 104 |
|
* @param NodeInterface $node |
| 105 |
|
* @return bool |
| 106 |
|
*/ |
| 107 |
|
public function allowsChildNodeType(NodeInterface $node): bool |
| 108 |
|
{ |
| 109 |
|
if ($node instanceof TextNode && trim($node->getText()) === '') { |
| 110 |
|
return false; |
| 111 |
|
} |
| 112 |
|
return true; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
/** |
| 116 |
|
* Rendering directly returns all child nodes. |
src/ViewHelpers/ThenViewHelper.php 1 location
|
@@ 49-55 (lines=7) @@
|
| 46 |
|
* @param NodeInterface $node |
| 47 |
|
* @return bool |
| 48 |
|
*/ |
| 49 |
|
public function allowsChildNodeType(NodeInterface $node): bool |
| 50 |
|
{ |
| 51 |
|
if ($node instanceof TextNode && trim($node->getText()) === '') { |
| 52 |
|
return false; |
| 53 |
|
} |
| 54 |
|
return true; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
/** |
| 58 |
|
* @param string $argumentsName |
src/ViewHelpers/ElseViewHelper.php 1 location
|
@@ 69-75 (lines=7) @@
|
| 66 |
|
* @param NodeInterface $node |
| 67 |
|
* @return bool |
| 68 |
|
*/ |
| 69 |
|
public function allowsChildNodeType(NodeInterface $node): bool |
| 70 |
|
{ |
| 71 |
|
if ($node instanceof TextNode && trim($node->getText()) === '') { |
| 72 |
|
return false; |
| 73 |
|
} |
| 74 |
|
return true; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
| 78 |
|
* @param string $argumentsName |