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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

snufkin created an issue. See original summary.

snufkin’s picture

snufkin’s picture

After applying patch both the error goes away, and the various statuses are displayed correctly (e.g. federated login link displayed when not logged in).

snufkin’s picture

Status: Needs review » Fixed

  • snufkin committed aefb485 on 8.x-3.x
    Issue #2863259 by snufkin: Object of class Drupal\\Core\\Link could not...

Status: Fixed » Closed (fixed)

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