/**
  * Set up the controller
  */
 public function init()
 {
     parent::init();
     Requirements::add_i18n_javascript(ASSET_ADMIN_DIR . '/client/lang', false, true);
     Requirements::javascript(ASSET_ADMIN_DIR . "/client/dist/js/bundle.js");
     Requirements::css(ASSET_ADMIN_DIR . "/client/dist/styles/bundle.css");
     CMSBatchActionHandler::register('delete', DeleteAssets::class, Folder::class);
 }
 /**
  * Initialize the model admin interface. Sets up embedded jquery libraries and requisite plugins.
  */
 protected function init()
 {
     parent::init();
     $models = $this->getManagedModels();
     if ($this->getRequest()->param('ModelClass')) {
         $this->modelClass = $this->unsanitiseClassName($this->getRequest()->param('ModelClass'));
     } else {
         reset($models);
         $this->modelClass = key($models);
     }
     // security check for valid models
     if (!array_key_exists($this->modelClass, $models)) {
         user_error('ModelAdmin::init(): Invalid Model class', E_USER_ERROR);
     }
 }