"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.9/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php" (18 Nov 2020, 565 Bytes) of package /linux/www/drupal-8.9.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "SynchronizableEntityTrait.php" see the Fossies "Dox" file reference documentation.

    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 }