gotem_content_moderation-1.1.6-alpha1/gotem.routing.yml

gotem.routing.yml
# Route for Gotem Content Moderation Settings page.
gotem.settings:
  path: '/admin/config/content/gotem'
  defaults:
    _form: '\Drupal\gotem\Form\GotemSettingsForm'
    _title: 'Gotem Content Moderation Settings'
  requirements:
    _permission: 'administer gotem settings'
  # This route provides a settings form for the Gotem content moderation module,
  # allowing administrators to configure moderation settings.

# Route for the Help page for Gotem Content Moderation.
help.page.gotem:
  path: '/admin/help/gotem'
  defaults:
    _title: 'Gotem Content Moderation Help'
    _help_page_label: 'Gotem Content Moderation'
  requirements:
    _permission: 'access help'
  # This route displays the Help page for the Gotem content moderation module,
  # where users can get help and information about how to use the module.

# Route for the controller that handles Help page content display.
gotem.help:
  path: '/admin/help/gotem'
  defaults:
    _controller: '\Drupal\gotem\Controller\GotemHelpController::help'
    _title: 'Gotem Content Moderation Help'
  requirements:
    _permission: 'access help'
  # This route uses the GotemHelpController to provide the content for the Help page.
  # The Help page can be accessed by users with the 'access help' permission.

# Route for displaying all flagged items.
gotem.flagged_items:
  path: '/flagged-items'
  defaults:
    _controller: '\Drupal\gotem\Controller\FlaggedItemsController::display'
    _title: 'Flagged Items'
  requirements:
    _permission: 'access content'
  # This route displays a list of all flagged items using the FlaggedItemsController.
  # Users with 'access content' permission can view the list of flagged items.

# Alternate path for the Gotem settings form.
gotem_settings_form:
  path: '/admin/config/gotem-settings'
  defaults:
    _form: '\Drupal\gotem\Form\GotemSettingsForm'
    _title: 'Gotem Content Moderation Settings'
  requirements:
    _permission: 'administer site configuration'
  # This route provides an alternate path for accessing the Gotem settings form,
  # allowing site administrators to configure the module's settings.

# Route for viewing a specific ModerationFlag entity.
entity.moderation_flag.canonical:
  path: '/moderation-flag/{moderation_flag}'
  defaults:
    _entity_view: 'moderation_flag.full'
    _title: 'Moderation Flag'
  requirements:
    _permission: 'view moderation flags'
  # This route displays the details of a specific ModerationFlag entity, which stores
  # information about flagged content. Users with the 'view moderation flags' permission
  # can view the details of the flagged content and the reason for the flagging.

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc