web/modules/contrib/bricks/bricks.module 92 Call to deprecated function drupal_set_message(). Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.

web/modules/contrib/bricks/bricks.module 162 Call to deprecated function entity_create(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use The method overriding Entity::create() for the entity type, e.g. \Drupal\node\Entity\Node::create() if the entity type is known. If the entity type is variable, use the entity storage's create() method to construct a new entity:

Comments

mo_farhaz created an issue. See original summary.

mo_farhaz’s picture

Assigned: mo_farhaz » Unassigned
Status: Active » Needs review
StatusFileSize
new2.02 KB

please review it.

ghost of drupal past’s picture

Status: Needs review » Needs work

Thanks for your work on this!

MessengerInterface::addMessage(t('Layout `%layout_id` is unknown.', ['%layout_id' => $layout]), 'warning'); that's not going to work, you can't call a method on an interface.

kapilv’s picture

Status: Needs work » Needs review
StatusFileSize
new2.03 KB
kapilv’s picture

StatusFileSize
new2.05 KB
penyaskito’s picture

ghost of drupal past’s picture

Status: Needs review » Needs work
StatusFileSize
new1023 bytes

As far as I can see from #2 to #5 the only change is from Entity::create(('paragraph' to Paragraph::create( and the MessengerInterface static call is still in place.

  • chx committed 66d3278 on 1.x authored by kapilkumar0324
    Issue #3131206 by kapilkumar0324, mo_farhaz, Charlie ChX Negyesi:...

ghost of drupal past’s picture

Status: Needs work » Fixed

Fixed during commit.

Status: Fixed » Closed (fixed)

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