| @@ 113-128 (lines=16) @@ | ||
| 110 | * |
|
| 111 | * @author Bertrand Kintanar <[email protected]> |
|
| 112 | */ |
|
| 113 | public function setupDataTable($job_titles) |
|
| 114 | { |
|
| 115 | $table = []; |
|
| 116 | ||
| 117 | $table['title'] = 'Job Titles'; |
|
| 118 | $table['permission'] = 'admin.job.titles'; |
|
| 119 | $table['headers'] = ['Id', 'Name', 'Description']; |
|
| 120 | $table['model'] = [ |
|
| 121 | 'singular' => 'job_title', |
|
| 122 | 'plural' => 'job_titles', |
|
| 123 | 'dashed' => 'job-titles', |
|
| 124 | ]; |
|
| 125 | $table['items'] = $job_titles; |
|
| 126 | ||
| 127 | return $table; |
|
| 128 | } |
|
| 129 | ||
| 130 | /** |
|
| 131 | * Update the PIM - Custom Field Section. |
|
| @@ 222-237 (lines=16) @@ | ||
| 219 | * |
|
| 220 | * @author Bertrand Kintanar <[email protected]> |
|
| 221 | */ |
|
| 222 | public function setupDataTable($custom_field_sections) |
|
| 223 | { |
|
| 224 | $table = []; |
|
| 225 | ||
| 226 | $table['title'] = 'Custom Field Sections'; |
|
| 227 | $table['permission'] = 'pim.configuration.custom-field-sections'; |
|
| 228 | $table['headers'] = ['Id', 'Name', 'Screen']; |
|
| 229 | $table['model'] = [ |
|
| 230 | 'singular' => 'custom_field_section', |
|
| 231 | 'plural' => 'custom_field_sections', |
|
| 232 | 'dashed' => 'custom-field-sections', |
|
| 233 | ]; |
|
| 234 | $table['items'] = $custom_field_sections; |
|
| 235 | ||
| 236 | return $table; |
|
| 237 | } |
|
| 238 | ||
| 239 | /** |
|
| 240 | * Setup table for custom field. |
|