Source of file DonationProduct.php
Size: 0,776 Bytes - Last Modified: 2021-12-24T06:45:37+00:00
/var/www/docs.ssmods.com/process/src/src/Page/DonationProduct.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | <?php namespace Dynamic\FoxyStripe\Page; use SilverStripe\Forms\FieldList; class DonationProduct extends ProductPage { /** * @var string */ private static $singular_name = 'Donation'; /** * @var string */ private static $plural_name = 'Donations'; /** * @var array */ //private static $allowed_children = []; /** * @var bool */ private static $can_be_root = true; /** * @var string */ private static $table_name = 'DonationProduct'; /** * @return FieldList */ public function getCMSFields() { $fields = parent::getCMSFields(); $fields->removeByName([ 'Weight', 'Price', ]); return $fields; } } |