You are here

public static function ExistingRightsResult::rightsExist in Commerce License 8.2

Creates an ExistingRightsResult stating that rights exist.

Parameters

\Drupal\Core\StringTranslation\TranslatableMarkup $message_owner: (optional) A translated message intended to be shown to the user.

\Drupal\Core\StringTranslation\TranslatableMarkup $message_other: (optional) A translated message intended to be shown to a different user.

Return value

\Drupal\commerce_license\ExistingRights\ExistingRightsResult The result object.

1 call to ExistingRightsResult::rightsExist()
ExistingRightsResult::rightsExistIf in src/ExistingRights/ExistingRightsResult.php
Creates an ExistingRightsResult from a condition.

File

src/ExistingRights/ExistingRightsResult.php, line 95

Class

ExistingRightsResult
Represents the result of a check for a user's existing rights.

Namespace

Drupal\commerce_license\ExistingRights

Code

public static function rightsExist(TranslatableMarkup $message_owner = NULL, TranslatableMarkup $message_other = NULL) {
  return new static(TRUE, $message_owner, $message_other);
}