Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | af1871eacc83 |
children |
line wrap: on
line 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; } }