You are here

function tmgmt_extension_suit_update_8005 in TMGMT Extension Suite 8

Same name and namespace in other branches
  1. 8.3 tmgmt_extension_suit.install \tmgmt_extension_suit_update_8005()
  2. 8.2 tmgmt_extension_suit.install \tmgmt_extension_suit_update_8005()

Delete action configuration entity.

File

./tmgmt_extension_suit.install, line 159
Update function for the tmgmt_extension_suit module.

Code

function tmgmt_extension_suit_update_8005() {
  try {
    Drupal::configFactory()
      ->getEditable('system.action.tmgmt_extension_suit_upload_job_action_id')
      ->delete();
  } catch (Exception $e) {
    throw new UpdateException('Unable to delete "tmgmt_extension_suit_upload_job_action" action.');
  }
}