Loading src/FotowebWidgetTrait.php +10 −4 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ trait FotowebWidgetTrait { } // Create the widget using an <iframe>. return [ $build = [ 'widget' => [ '#type' => 'html_tag', '#tag' => 'iframe', Loading @@ -79,7 +79,11 @@ trait FotowebWidgetTrait { 'height' => $widget_height, ], ], 'revoke_authenticate_button' => [ ]; // Revoking is only necessary for OAuth 2.0 based integrations. if ($config->get('auth_type') === 'oauth2') { $build['revoke_authenticate_button'] = [ '#type' => 'link', '#title' => $this->t('Revoke authentication with Fotoware'), '#attributes' => [ Loading @@ -91,10 +95,12 @@ trait FotowebWidgetTrait { 'target' => '_blank', ], '#url' => Url::fromRoute('media_fotoweb.oauth2_revoke'), ], ]; } return $build; } /** * {@inheritdoc} */ Loading Loading
src/FotowebWidgetTrait.php +10 −4 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ trait FotowebWidgetTrait { } // Create the widget using an <iframe>. return [ $build = [ 'widget' => [ '#type' => 'html_tag', '#tag' => 'iframe', Loading @@ -79,7 +79,11 @@ trait FotowebWidgetTrait { 'height' => $widget_height, ], ], 'revoke_authenticate_button' => [ ]; // Revoking is only necessary for OAuth 2.0 based integrations. if ($config->get('auth_type') === 'oauth2') { $build['revoke_authenticate_button'] = [ '#type' => 'link', '#title' => $this->t('Revoke authentication with Fotoware'), '#attributes' => [ Loading @@ -91,10 +95,12 @@ trait FotowebWidgetTrait { 'target' => '_blank', ], '#url' => Url::fromRoute('media_fotoweb.oauth2_revoke'), ], ]; } return $build; } /** * {@inheritdoc} */ Loading