You are here

interface OwnOrAdminConstraintInterface in Simple OAuth (OAuth2) & OpenID Connect 8

Interface OwnOrAdminConstraintInterface.

@package Drupal\simple_oauth\Plugin\Validation\Constraint

Hierarchy

Expanded class hierarchy of OwnOrAdminConstraintInterface

All classes that implement OwnOrAdminConstraintInterface

File

src/Plugin/Validation/Constraint/OwnOrAdminConstraintInterface.php, line 10

Namespace

Drupal\simple_oauth\Plugin\Validation\Constraint
View source
interface OwnOrAdminConstraintInterface {

  /**
   * Gets the permission.
   *
   * @return string
   *   The permission.
   */
  public function getPermission();

  /**
   * Gets the account.
   *
   * @return \Drupal\Core\Session\AccountInterface
   *   The user.
   */
  public function getAccount();

}

Members

Namesort descending Modifiers Type Description Overrides
OwnOrAdminConstraintInterface::getAccount public function Gets the account. 1
OwnOrAdminConstraintInterface::getPermission public function Gets the permission. 1