Verified Commit a62e112f authored by Dave Long's avatar Dave Long
Browse files

fix: #3559247 Wrong hook reference in SystemHooks.php

By: bbrala
By: godotislate
By: phenaproxima
(cherry picked from commit ca97653a)
parent e5d63d3e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -540,7 +540,7 @@ public function archiverInfoAlter(&$info): void {
   *
   * Transforms empty description into null.
   */
  #[Hook('hook_entity_form_mode_presave')]
  #[Hook('entity_form_mode_presave')]
  public function systemEntityFormModePresave(EntityInterface $entity): void {
    if ($entity->get('description') !== NULL && trim($entity->get('description')) === '') {
      @trigger_error("Setting description to an empty string is deprecated in drupal:11.2.0 and it must be null in drupal:12.0.0. See https://www.drupal.org/node/3452144", E_USER_DEPRECATED);