clean install

This commit is contained in:
2024-12-10 15:08:16 +01:00
commit e14eb2d8fd
31193 changed files with 3555714 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace Drupal\entity_reference_revisions;
use Drupal\Core\Entity\EntityStorageInterface;
/**
* Trait for EntityNeedsSaveInterface.
*/
trait EntityNeedsSaveTrait {
/**
* Whether the entity needs to be saved or not.
*
* @var bool
*/
protected $needsSave = FALSE;
/**
* {@inheritdoc}
*/
public function needsSave() {
return $this->needsSave;
}
/**
* {@inheritdoc}
*/
public function setNeedsSave($needs_save) {
$this->needsSave = $needs_save;
}
/**
* {@inheritdoc}
*/
public function postSave(EntityStorageInterface $storage, $update = TRUE) {
parent::postSave($storage, $update);
$this->setNeedsSave(FALSE);
}
}