Remove the deprecated method drupal_set_mesaage and replace it with appropriate method.

Comments

shubham.prakash created an issue. See original summary.

shubham.prakash’s picture

Assigned: shubham.prakash » Unassigned
Status: Active » Needs review
StatusFileSize
new639 bytes

This patch will fix the issue

rudranil29’s picture

Assigned: Unassigned » rudranil29
Status: Needs review » Needs work

Found lots of issue.
2/2 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ ---------------------------------------------------------------------------
Line src/Form/LatexForm.php
------ ---------------------------------------------------------------------------
83 Call to deprecated function node_load():
in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use
\Drupal\node\Entity\Node::load().
90 Call to deprecated method getUsername() of class Drupal\user\Entity\User:
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
127 Call to deprecated function node_load():
in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use
\Drupal\node\Entity\Node::load().
153 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
156 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ---------------------------------------------------------------------------
and formbase already using MessengerTrait::$messenger , so need to call core messenger.

rudranil29’s picture

Status: Needs work » Needs review
StatusFileSize
new2.07 KB

proper patch for deprecated code

rudranil29’s picture

Assigned: rudranil29 » Unassigned
rudranil29’s picture

StatusFileSize
new2.07 KB

please find patch for this module

  • gaurav.kapoor committed 9f1faea on 8.x-1.x authored by joy29
    Issue #3069995 by joy29, shubham.prakash: Remove the deprecated methods
    
gaurav.kapoor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.