Browse Source

Clarify wording and add manage link.

pull/908/head
Rosie Le Faive 2 years ago
parent
commit
7eebb65c2b
  1. 7
      src/Controller/ManageMediaController.php
  2. 7
      src/Controller/ManageMembersController.php

7
src/Controller/ManageMediaController.php

@ -36,8 +36,11 @@ class ManageMediaController extends ManageMembersController {
return [
'#type' => 'markup',
'#markup' => $this->t("These available media types below have <em>@field</em> and it is configured to allow this content type.",
['@field' => $field]),
'#markup' => $this->t("The following media types can be added because they have the <code>@field</code> field. <a href=@manage_media_page>Manage media types</a>.",
[
'@field' => $field,
'@manage_media_page' => '/admin/structure/media',
]),
'add_media' => $add_media_list,
];
}

7
src/Controller/ManageMembersController.php

@ -100,8 +100,11 @@ class ManageMembersController extends EntityController {
return [
'#type' => 'markup',
'#markup' => $this->t("These available content types below have <em>@field</em> and it is configured to allow this content type.",
['@field' => $field]),
'#markup' => $this->t("The following content types can be added because they have the <code>@field</code> field. <a href=@manage_content_types>Manage content types</a>.",
[
'@field' => $field,
'@manage_content_types' => '/admin/structure/types',
]),
'add_node' => $add_node_list,
];
}

Loading…
Cancel
Save