Lines Matching refs:block_id
135 * @param int $block_id
141 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument
145 $days = (int)$this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS);
146 $filter = (bool)$this->getBlockSetting($block_id, 'filter', self::DEFAULT_FILTER);
147 $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE);
148 $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT);
149 $events = $this->getBlockSetting($block_id, 'events', $default_events);
185 'id' => $block_id,
202 'id' => $block_id,
203 'config_url' => $this->configUrl($tree, $context, $block_id),
248 * @param int $block_id
252 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument
260 $this->setBlockSetting($block_id, 'days', (string)$days);
261 $this->setBlockSetting($block_id, 'filter', (string)$filter);
262 $this->setBlockSetting($block_id, 'infoStyle', $info_style);
263 $this->setBlockSetting($block_id, 'sortStyle', $sort_style);
264 $this->setBlockSetting($block_id, 'events', implode(',', $events));
271 * @param int $block_id
275 public function editBlockConfiguration(Tree $tree, int $block_id): string argument
279 $days = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS);
280 $filter = $this->getBlockSetting($block_id, 'filter', self::DEFAULT_FILTER);
281 $info_style = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE);
282 $sort_style = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT);
283 $events = $this->getBlockSetting($block_id, 'events', $default_events);