public function BundleItemInterface::setRequired in Commerce Product Bundle 8
Set whether the product bundle item is required or not.
Parameters
bool $required: Set TRUE if required, FALSE if optional.
Return value
\Drupal\commerce_product_bundle\Entity\BundleItemInterface The called product bundle item entity.
1 method overrides BundleItemInterface::setRequired()
- ProductBundleItem::setRequired in src/
Entity/ ProductBundleItem.php - Set whether the product bundle item is required or not.
File
- src/
Entity/ BundleItemInterface.php, line 46
Class
- BundleItemInterface
- Provides an interface for defining product bundle item entities.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function setRequired($required);