| @@ 193-199 (lines=7) @@ | ||
| 190 | * @return int |
|
| 191 | * The default limit. |
|
| 192 | */ |
|
| 193 | protected function getPagerLimit(DisplayPluginInterface $display) { |
|
| 194 | $pagerOptions = $display->getOption('pager'); |
|
| 195 | return NestedArray::getValue($pagerOptions, [ |
|
| 196 | 'options', |
|
| 197 | 'items_per_page', |
|
| 198 | ]) ?: 0; |
|
| 199 | } |
|
| 200 | ||
| 201 | /** |
|
| 202 | * Get the configured default offset. |
|
| @@ 210-216 (lines=7) @@ | ||
| 207 | * @return int |
|
| 208 | * The default offset. |
|
| 209 | */ |
|
| 210 | protected function getPagerOffset(DisplayPluginInterface $display) { |
|
| 211 | $pagerOptions = $display->getOption('pager'); |
|
| 212 | return NestedArray::getValue($pagerOptions, [ |
|
| 213 | 'options', |
|
| 214 | 'offset', |
|
| 215 | ]) ?: 0; |
|
| 216 | } |
|
| 217 | ||
| 218 | /** |
|
| 219 | * Check if a certain interface exists. |
|