trait ConfigEntityLockableTrait in Simple OAuth (OAuth2) & OpenID Connect 8.3
Same name and namespace in other branches
- 8.4 src/Entity/ConfigEntityLockableTrait.php \Drupal\simple_oauth\Entity\ConfigEntityLockableTrait
- 8.2 src/Entity/ConfigEntityLockableTrait.php \Drupal\simple_oauth\Entity\ConfigEntityLockableTrait
- 5.x src/Entity/ConfigEntityLockableTrait.php \Drupal\simple_oauth\Entity\ConfigEntityLockableTrait
Hierarchy
- trait \Drupal\simple_oauth\Entity\ConfigEntityLockableTrait
File
- src/
Entity/ ConfigEntityLockableTrait.php, line 5
Namespace
Drupal\simple_oauth\EntityView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigEntityLockableTrait:: |
protected | property | Locked status. | |
ConfigEntityLockableTrait:: |
public | function | ||
ConfigEntityLockableTrait:: |
public | function | ||
ConfigEntityLockableTrait:: |
public | function |