Lines Matching refs:block_id
115 * @param int $block_id
121 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument
127 $filter = (bool) $this->getBlockSetting($block_id, 'filter', '1');
128 $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE);
129 $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT);
130 $events = $this->getBlockSetting($block_id, 'events', $default_events);
157 'id' => $block_id,
174 'id' => $block_id,
175 'config_url' => $this->configUrl($tree, $context, $block_id),
220 * @param int $block_id
224 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument
231 $this->setBlockSetting($block_id, 'filter', $filter);
232 $this->setBlockSetting($block_id, 'infoStyle', $info_style);
233 $this->setBlockSetting($block_id, 'sortStyle', $sort_style);
234 $this->setBlockSetting($block_id, 'events', implode(',', $events));
241 * @param int $block_id
245 public function editBlockConfiguration(Tree $tree, int $block_id): string argument
249 $filter = $this->getBlockSetting($block_id, 'filter', '1');
250 $info_style = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE);
251 $sort_style = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT);
252 $events = $this->getBlockSetting($block_id, 'events', $default_events);