| @@ 70-80 (lines=11) @@ | ||
| 67 | * @return array |
|
| 68 | * The contextual filter argument if applicable. |
|
| 69 | */ |
|
| 70 | protected function getContextualArguments(array $arguments, $id) { |
|
| 71 | if (!empty($arguments)) { |
|
| 72 | return [ |
|
| 73 | 'contextualFilter' => [ |
|
| 74 | 'type' => StringHelper::camelCase($id, 'contextual', 'filter', 'input'), |
|
| 75 | ], |
|
| 76 | ]; |
|
| 77 | } |
|
| 78 | ||
| 79 | return []; |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * Helper function to retrieve the sort arguments if any are exposed. |
|
| @@ 29-39 (lines=11) @@ | ||
| 26 | * @return array |
|
| 27 | * The contextual filter argument if applicable. |
|
| 28 | */ |
|
| 29 | protected function getContextualArguments(array $arguments, $id) { |
|
| 30 | if (!empty($arguments)) { |
|
| 31 | return [ |
|
| 32 | 'contextualFilter' => [ |
|
| 33 | 'type' => StringHelper::camelCase($id, 'contextual', 'filter', 'input'), |
|
| 34 | ], |
|
| 35 | ]; |
|
| 36 | } |
|
| 37 | ||
| 38 | return []; |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * Helper function to retrieve the sort arguments if any are exposed. |
|