<?php

/**
 * @file
 * Post update functions for Castorcito.
 */

/**
 * Install Castorcito ajax upload image rest resource.
 */
function castorcito_post_update_install_castorcito_ajax_upload_image_resource(&$sandbox) {
  \Drupal::service('config.installer')->installDefaultConfig('module', 'castorcito');
  \Drupal::messenger()->addMessage('The REST resource was active.');
}

/**
 * Install Castorcito Block list rest resource.
 */
function castorcito_post_update_install_castorcito_block_list_resource(&$sandbox) {
  \Drupal::service('config.installer')->installDefaultConfig('module', 'castorcito');
  \Drupal::messenger()->addMessage('The REST resource was active.');
}
