Lines Matching refs:block_id
74 * @param int $block_id
80 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument
84 $title = $this->getBlockSetting($block_id, 'title');
85 $content = $this->getBlockSetting($block_id, 'html');
86 $show_timestamp = $this->getBlockSetting($block_id, 'show_timestamp');
87 $languages = $this->getBlockSetting($block_id, 'languages');
98 $block_timestamp = (int) $this->getBlockSetting($block_id, 'timestamp', (string) time());
107 'id' => $block_id,
108 'config_url' => $this->configUrl($tree, $context, $block_id),
153 * @param int $block_id
157 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument
164 $this->setBlockSetting($block_id, 'title', $title);
165 $this->setBlockSetting($block_id, 'html', $this->html_service->sanitize($html));
166 $this->setBlockSetting($block_id, 'show_timestamp', (string) $show_timestamp);
167 $this->setBlockSetting($block_id, 'timestamp', (string) time());
168 $this->setBlockSetting($block_id, 'languages', implode(',', $languages));
175 * @param int $block_id
179 public function editBlockConfiguration(Tree $tree, int $block_id): string argument
181 $title = $this->getBlockSetting($block_id, 'title');
182 $html = $this->getBlockSetting($block_id, 'html');
183 $show_timestamp = $this->getBlockSetting($block_id, 'show_timestamp', '0');
184 $languages = explode(',', $this->getBlockSetting($block_id, 'languages'));