📜  drupal 9 如何使用参数从渲染数组渲染视图块 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:44.059000             🧑  作者: Mango

代码示例1
$ra = [
    '#type' => 'view',
    '#name' => 'campaigns',
    '#display_id' => 'camp_status_block',    // view block machine id
    '#arguments' => ['campaign_id' => implode(',', $campaign_ids)]
];