You are here

ScopeInterface.php in OAuth2 Server 8

Same filename and directory in other branches
  1. 2.0.x src/ScopeInterface.php

File

src/ScopeInterface.php
View source
<?php

namespace Drupal\oauth2_server;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Defines the interface for scope entities.
 *
 * @package Drupal\oauth2_server
 */
interface ScopeInterface extends ConfigEntityInterface {

  /**
   * Returns the server the scope belongs to.
   *
   * @return \Drupal\oauth2_server\ServerInterface
   *   Returns the server object the scope belongs to.
   */
  public function getServer();

  /**
   * Returns whether the scope is the default server scope.
   *
   * @return bool
   *   TRUE or FALSE
   */
  public function isDefault();

}

Interfaces

Namesort descending Description
ScopeInterface Defines the interface for scope entities.