Example #1
0
 /**
  * Adds the following jobs:
  *
  * - `online`: Set the selected records online.
  * - `offline`: Set the selected records offline.
  */
 protected function get_available_jobs()
 {
     return array_merge(parent::get_available_jobs(), ['online' => I18n\t('online.operation.short_title'), 'offline' => I18n\t('offline.operation.short_title')]);
 }
Example #2
0
 /**
  * Adds the following jobs:
  *
  * - `activate`: Activate the selected records.
  * - `deactivate`: Deactivate the selected records.
  */
 protected function get_available_jobs()
 {
     return array_merge(parent::get_available_jobs(), [Module::OPERATION_ACTIVATE => I18n\t('activate.operation.title'), Module::OPERATION_DEACTIVATE => I18n\t('deactivate.operation.title')]);
 }