Skip to content

how to work with IntersectionType? #8997

Closed Answered by norak
norak asked this question in Q&A
Jan 31, 2025 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

<?php echo html()->button('<i class="fa ' . $actionBtnIcon . '" aria-hidden="true"></i> ' . $btnSubmitText)->type(['button'])->id(['confirm'])->class(['btn', 'btn-' . $modalClass, 'pull-right', 'btn-flat']) ?>
ok. this worked for me
first i found array, then used transformConcatToStringArray

$array = $this->nodeFinder->findFirstInstanceOf($node, Array_::class);
$class_args = [];
$class_items = new Array_();
foreach ($array->items as $arrayItem) {
	$arr_key_name = $arrayItem->key->value;
	if($arrayItem->value instanceof Concat){
		$class_array = $this->NodeTransformer->transformConcatToStringArray($arrayItem->value);
		foreach ($class_array->items as $key_row => $row){
			if($row->value in…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@TomasVotruba
Comment options

@norak
Comment options

@TomasVotruba
Comment options

@norak
Comment options

Answer selected by norak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants