Mercurial > hg > cmmr2012-drupal-site
comparison core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Core\Entity; | |
4 | |
5 /** | |
6 * Provides a trait for accessing synchronization information. | |
7 * | |
8 * @ingroup entity_api | |
9 */ | |
10 trait SynchronizableEntityTrait { | |
11 | |
12 /** | |
13 * Whether this entity is being created, updated or deleted through a | |
14 * synchronization process. | |
15 * | |
16 * @var bool | |
17 */ | |
18 protected $isSyncing = FALSE; | |
19 | |
20 /** | |
21 * {@inheritdoc} | |
22 */ | |
23 public function setSyncing($syncing) { | |
24 $this->isSyncing = $syncing; | |
25 | |
26 return $this; | |
27 } | |
28 | |
29 /** | |
30 * {@inheritdoc} | |
31 */ | |
32 public function isSyncing() { | |
33 return $this->isSyncing; | |
34 } | |
35 | |
36 } |