You are here

trait SynchronizableEntityTrait in Drupal 8

Same name and namespace in other branches
  1. 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

Namesort descending Modifiers Type Description Overrides
SynchronizableEntityTrait::$isSyncing protected property Whether this entity is being created, updated or deleted through a synchronization process.
SynchronizableEntityTrait::isSyncing public function
SynchronizableEntityTrait::setSyncing public function