public function ProductController::setImageDefaults in Ubercart 8.4
Sets up the default image field for products.
1 string reference to 'ProductController::setImageDefaults'
- uc_product.routing.yml in uc_product/
uc_product.routing.yml - uc_product/uc_product.routing.yml
File
- uc_product/
src/ Controller/ ProductController.php, line 60
Class
- ProductController
- Controller routines for product routes.
Namespace
Drupal\uc_product\ControllerCode
public function setImageDefaults() {
uc_product_add_default_image_field();
$this
->messenger()
->addMessage($this
->t('Default image support configured for Ubercart products.'));
return $this
->redirect('uc_store.admin');
}