public static function TagProcessResult::create in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/TagProcessResult.php \Drupal\xbbcode\TagProcessResult::create()
Concatenate a sequence of results into one.
Parameters
\Drupal\xbbcode\TagProcessResult[] $children: Sequence of tag process results.
Return value
\Drupal\xbbcode\TagProcessResult The concatenated result with merged metadata.
File
- src/
TagProcessResult.php, line 59
Class
- TagProcessResult
- Represents the output of a tag processor in a tree.
Namespace
Drupal\xbbcodeCode
public static function create(array $children) : TagProcessResult {
$result = new TagProcessResult(implode('', $children));
foreach ($children as $child) {
$result = $result
->merge($child);
}
return $result;
}