You are here

trait ConfigEntityLockableTrait in Simple OAuth (OAuth2) & OpenID Connect 8.3

Same name and namespace in other branches
  1. 8.4 src/Entity/ConfigEntityLockableTrait.php \Drupal\simple_oauth\Entity\ConfigEntityLockableTrait
  2. 8.2 src/Entity/ConfigEntityLockableTrait.php \Drupal\simple_oauth\Entity\ConfigEntityLockableTrait
  3. 5.x src/Entity/ConfigEntityLockableTrait.php \Drupal\simple_oauth\Entity\ConfigEntityLockableTrait

Hierarchy

File

src/Entity/ConfigEntityLockableTrait.php, line 5

Namespace

Drupal\simple_oauth\Entity
View source
trait ConfigEntityLockableTrait {

  /**
   * Locked status.
   *
   * @var bool
   */
  protected $locked = FALSE;

  /**
   * {@inheritdoc}
   */
  public function isLocked() {
    return $this->locked;
  }

  /**
   * {@inheritdoc}
   */
  public function lock() {
    $this->locked = TRUE;
  }

  /**
   * {@inheritdoc}
   */
  public function unlock() {
    $this->locked = FALSE;
  }

}

Members