12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- declare(strict_types=1);
- namespace OCA\Comments;
- use OCP\AppFramework\Services\InitialStateProvider;
- use OCP\IConfig;
- class MaxAutoCompleteResultsInitialState extends InitialStateProvider {
- public function __construct(
- private IConfig $config,
- ) {
- }
- public function getKey(): string {
- return 'maxAutoCompleteResults';
- }
- public function getData(): int {
- return (int)$this->config->getAppValue('comments', 'maxAutoCompleteResults', '10');
- }
- }
|