Answers for "drupal 9 how to render a view block from render array with arguments"

PHP
0

drupal 9 how to render a view block from render array with arguments

$ra = [
	'#type' => 'view',
	'#name' => 'campaigns',
	'#display_id' => 'camp_status_block',	// view block machine id
	'#arguments' => ['campaign_id' => implode(',', $campaign_ids)]
];
Posted by: Guest on July-31-2021

Code answers related to "drupal 9 how to render a view block from render array with arguments"

Browse Popular Code Answers by Language