public function BundleInterface::setPublished in Commerce Product Bundle 8
Sets the published status of a product bundle.
Parameters
bool $published: TRUE to set this product bundle to published, FALSE to set it to unpublished.
Return value
\Drupal\commerce_product_bundle\Entity\BundleInterface The called product bundle entity.
1 method overrides BundleInterface::setPublished()
- ProductBundle::setPublished in src/
Entity/ ProductBundle.php - Sets the published status of a product bundle.
File
- src/
Entity/ BundleInterface.php, line 92
Class
- BundleInterface
- Provides an interface for defining product bundle entities.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function setPublished($published);