public function ExistingRightsResult::__construct in Commerce License 8.2
Constructs a new ExistingRightsResult.
Parameters
bool $status: Whether the user has existing rights.
\Drupal\Core\StringTranslation\TranslatableMarkup $message_owner: (optional) A translated message intended to be shown to the user, to explain that they already have these rights. This should not make reference to cart or product.
\Drupal\Core\StringTranslation\TranslatableMarkup $message_other: (optional) A translated message intended to be shown to a different user, such as an admin, to explain that the user being checked already has these rights. This should not make reference to cart or product.
File
- src/
ExistingRights/ ExistingRightsResult.php, line 53
Class
- ExistingRightsResult
- Represents the result of a check for a user's existing rights.
Namespace
Drupal\commerce_license\ExistingRightsCode
public function __construct($status, TranslatableMarkup $message_owner = NULL, TranslatableMarkup $message_other = NULL) {
$this->status = $status;
$this->messageOwner = $message_owner;
$this->messageOther = $message_other;
}