New answers tagged

0

In Drupal 9 (and a while before), the changed field of the node entity is of type ChangedItem (see BaseFieldDefinition::create('changed') in Node.php). In Drupal\Core\Field\Plugin\Field\FieldType\ChangedItem, you'll find the following: public function preSave() { parent::preSave(); ... if (!$entity->isNew() && $original && $...


Top 50 recent answers are included