SynchronizableEntityTrait.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php
  2. 8.9.x core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php
  3. 11.x core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php

Namespace

Drupal\Core\Entity

File

core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php

View source
<?php

namespace Drupal\Core\Entity;


/**
 * Provides a trait for accessing synchronization information.
 *
 * @ingroup entity_api
 */
trait SynchronizableEntityTrait {
    
    /**
     * Is entity being created updated or deleted through 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

Title Deprecated Summary
SynchronizableEntityTrait Provides a trait for accessing synchronization information.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.