You are here

trait SynchronizableEntityTrait in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php \Drupal\Core\Entity\SynchronizableEntityTrait
  2. 9 core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php \Drupal\Core\Entity\SynchronizableEntityTrait

Provides a trait for accessing synchronization information.

Hierarchy

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\Entity
View 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