Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the SimplesamlphpAuthBlock plugin the #markup form element is used to inject a link into the block content. The Link class throws the "Object of class Drupal\\Core\\Link could not be converted to string" error.
The usage of #markup should be avoided in favour of the #type => link renderable component.
Comments
Comment #2
snufkin CreditAttribution: snufkin at Cheppers commentedFixing the block plugin build() method to use the right Drupal API for the link.
Comment #3
snufkin CreditAttribution: snufkin at Cheppers commentedAfter applying patch both the error goes away, and the various statuses are displayed correctly (e.g. federated login link displayed when not logged in).
Comment #4
snufkin CreditAttribution: snufkin at Cheppers commented