SynchronizableEntityTrait.php in Drupal 9
Same filename and directory in other branches
Namespace
Drupal\Core\EntityFile
core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.phpView source
<?php
namespace Drupal\Core\Entity;
/**
* Provides a trait for accessing synchronization information.
*
* @ingroup entity_api
*/
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;
}
}
Traits
Name | Description |
---|---|
SynchronizableEntityTrait | Provides a trait for accessing synchronization information. |