Create a drupal 9 port, drupal 9 report

Created on 30 October 2019, almost 6 years ago
Updated 17 January 2025, 9 months ago

https://www.drupal.org/pift-ci-job/2029406

Render callbacks must be a closure or implement TrustedCallbackInterface or RenderElementInterface .

  3x: Render #lazy_builder callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was Drupal\rate\RateEntityVoteWidget::buildRateVotingWidget. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725
    3x in ViewsFilterTest::testFilterMin from Drupal\Tests\rate\Functional\ViewsFilterTest.php

See https://git.drupalcode.org/project/rate/-/blob/8.x-1.x/src/Plugin/views/...

public function render(ResultRow $values) {
  $entity = $this->getEntity($values);
  $widget = [];

  if ($entity) {
    $widget = [
      '#lazy_builder' => ['rate.entity.vote_widget:buildRateVotingWidget',
        [
          $entity->id(),
          $entity->getEntityType()->id(),
          $entity->bundle(),
          $this->options['widget_type'],
        ],
      ],
      '#create_placeholder' => TRUE,
    ];
  }

  return $widget;
}
Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands tomvanetten

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024