ConfigEntityLockableTrait.php in Simple OAuth (OAuth2) & OpenID Connect 5.x
Same filename and directory in other branches
Namespace
Drupal\simple_oauth\EntityFile
src/Entity/ConfigEntityLockableTrait.phpView source
<?php
namespace Drupal\simple_oauth\Entity;
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;
}
}
Traits
Name | Description |
---|---|
ConfigEntityLockableTrait |