Skip to content

Commit

Permalink
Avoid potential installation order of operations conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
markfullmer committed Jan 2, 2022
1 parent fff2c04 commit 7e11263
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rest_feedback_endpoint.install
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ function rest_feedback_endpoint_install() {
$route_builder->rebuild();

$messenger->addMessage(t('Thanks for installing the REST Feedback endpoint'));
$messenger->addMessage(t('1. Configure feedback settings at <a href="/admin/config/services/rest">/admin/config/rest-feedback-endpoint</a>'));
$messenger->addMessage(t('2. Enable the "Submit an Issue" endpoint at <a href="@rest">/admin/config/services/rest</a>: <ul><li>Granularity: "resource"</li><li>method: "POST"</li><li>authentication providers: oauth2</li></ul>', [
'@rest' => Url::fromRoute('restui.list')->toString(),
]));
$messenger->addMessage(t('1. Configure feedback settings at <a href="/admin/config/rest-feedback-endpoint">/admin/config/rest-feedback-endpoint</a>'));
$messenger->addMessage(t('2. Enable the "Submit an Issue" endpoint at <a href="/admin/config/services/rest"">/admin/config/services/rest</a>: <ul><li>Granularity: "resource"</li><li>method: "POST"</li><li>authentication providers: oauth2</li></ul>'));
$messenger->addMessage(t('3. Set Drupal permissions to restrict access to the endpoint by role.'));
$messenger->addMessage(t('4. Make sure your services.yml is set up to handle POST requests (see README.md).'));
}

0 comments on commit 7e11263

Please sign in to comment.