trait SynchronizableEntityTrait in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php \Drupal\Core\Entity\SynchronizableEntityTrait
Provides a trait for accessing synchronization information.
Hierarchy
- trait \Drupal\Core\Entity\SynchronizableEntityTrait
Related topics
1 file declares its use of SynchronizableEntityTrait
- ConfigEntityBase.php in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php
File
- core/
lib/ Drupal/ Core/ Entity/ SynchronizableEntityTrait.php, line 10
Namespace
Drupal\Core\EntityView source
trait SynchronizableEntityTrait {
/**
* Whether this entity is being created, updated or deleted through a
* synchronization process.
*
* @var bool
*/
protected $isSyncing = FALSE;
/**
* {@inheritdoc}
*/
public function setSyncing($syncing) {
$this->isSyncing = $syncing;
return $this;
}
/**
* {@inheritdoc}
*/
public function isSyncing() {
return $this->isSyncing;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SynchronizableEntityTrait:: |
protected | property | Whether this entity is being created, updated or deleted through a synchronization process. | |
SynchronizableEntityTrait:: |
public | function | ||
SynchronizableEntityTrait:: |
public | function |