Skip to content

NextSiteEntityController::environmentVariables consumer route should not be hardcoded #615

Open
@mglaman

Description

@mglaman

Package

next (Drupal module)

Describe the feature request

\Drupal\next\Controller\NextSiteEntityController::environmentVariables hardcodes the paths /admin/config/services/consumer. This path should be retrieved using a URL object and the routing system, in case it ever changes.

Describe the solution you'd like

    $path = Url::fromRoute('entity.consumer.collection')->toString();
    $variables += [
      'authentication_bearer' => '# Authentication',
      'DRUPAL_CLIENT_ID' => 'Retrieve this from ' . $path,
      'DRUPAL_CLIENT_SECRET' => 'Retrieve this from ' . $path,
    ];

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions