change maintenance date

PHOTO EMBED

Thu May 26 2022 14:07:36 GMT+0000 (UTC)

Saved by @igor #drupal #mysql

function change_maintenance_date() {
  //Change the date so the Report date is 2024. 07. 15.
  $cfp = \Drupal::entityTypeManager()->getStorage('cfp')->load(190);
  $cfp->set('maintenance_period', '2021-07-15')->save(); // Ovaj datum je 
}
content_copyCOPY