📌  相关文章
📜  Drupal 9 如何将参数传递给自定义块 - PHP 代码示例

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

代码示例1
$block_vals = [
'campaign_id' => $camp_id, 'campaign_hash' => $camp_hash
];

// block manager service available in this example at $this->bm 
$ra = $this->bm->createInstance('your_block_id', $block_vals)->build();