Commit 73510345 authored by Dale McGladdery's avatar Dale McGladdery Committed by renatog
Browse files

Issue #3274361 by dale42, gagarine, RenatoG: The page...

Issue #3274361 by dale42, gagarine, RenatoG: The page /admin/structure/invite/settings/fields has no parent menu
parent 152597f8
Loading
Loading
Loading
Loading
+5 −1
Changes for modules/invite_by_email/invite_by_email.module: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
 */

use Drupal\Component\Render\PlainTextOutput;
use Drupal\Core\Url;
use Drupal\invite\InviteConstants;
use Drupal\Core\Form\FormStateInterface;
use Drupal\invite_by_email\Plugin\Invite\InviteByEmail;
@@ -80,7 +81,10 @@ function invite_by_email_form_alter(&$form, FormStateInterface $form_state, $for
    $form['invite_by_email']['help'] = [
      '#type' => 'container',
      'help' => [
        '#markup' => t('You may update the default subject and body for all invites on the <a href="@fields_path">fields edit page</a>.', ['@fields_path' => '/admin/structure/invite/settings/fields']),
        '#markup' => t(
          'You may update the default subject and body for all invites on the <a href="@fields_path">fields edit page</a>.',
          ['@fields_path' => Url::fromRoute('entity.invite.field_ui_fields')->toString()]
        ),
      ],
      '#states' => [
        'invisible' => [
+1 −1
Changes for src/Entity/Invite.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ use Drupal\user\UserInterface;
 *     "edit-form" = "/admin/structure/invite/{invite}/edit",
 *     "collection" = "/admin/structure/invite",
 *   },
 *   field_ui_base_route = "invite.settings"
 *   field_ui_base_route = "invite.invite_config"
 * )
 */
class Invite extends ContentEntityBase implements InviteInterface {