public function Wishlist::getCode in Commerce Wishlist 8.3
Gets the wishlist code.
Return value
string The wishlist code.
Overrides WishlistInterface::getCode
2 calls to Wishlist::getCode()
- Wishlist::toUrl in src/
Entity/ Wishlist.php - Gets the URL object for the entity.
- Wishlist::urlRouteParameters in src/
Entity/ Wishlist.php - Gets an array of placeholders for this entity.
File
- src/
Entity/ Wishlist.php, line 142
Class
- Wishlist
- Defines the wishlist entity class.
Namespace
Drupal\commerce_wishlist\EntityCode
public function getCode() {
return $this
->get('code')->value;
}