social_user.page_redirect:
  path: '/user/{user}'
  defaults:
    _controller: '\Drupal\social_user\Controller\SocialUserController::otherUserPage'
    _title: 'Account'
  requirements:
    _user_is_logged_in: 'TRUE'

social_user.user_flood_settings:
  path: '/admin/config/people/accounts/flood'
  defaults:
    _form: '\Drupal\social_user\Form\SocialUserFloodForm'
    _title: 'User flooding'
  requirements:
    _permission: 'administer site configuration'

social_user.navigation_settings:
  path: '/admin/config/opensocial/navigation-settings'
  defaults:
    _form: '\Drupal\social_user\Form\SocialUserNavigationSettingsForm'
    _title: 'Navigation Settings'
  requirements:
    _permission: 'administer navigation settings'

social_user.settings:
  path: '/admin/config/opensocial/user'
  defaults:
    _form: '\Drupal\social_user\Form\SocialUserSettingsForm'
    _title: 'User settings'
  requirements:
    _permission: 'administer social_user settings'
  options:
    _admin_route: TRUE

social_user.user_home:
  path: '/user/{user}/home'
  defaults:
    _entity_view: 'user.stream'
  requirements:
    _user_is_logged_in: 'TRUE'
    _custom_access: '\Drupal\social_user\Controller\SocialUserController::accessUsersPages'

social_user.stream:
  path: '/user/{user}/stream'
  defaults:
    _entity_view: 'user.stream'
  requirements:
    _user_is_logged_in: 'TRUE'
    _custom_access: '\Drupal\social_user\Controller\SocialUserController::accessUsersPages'

social_user.my_settings:
  path: '/my-settings'
  defaults:
    _controller: '\Drupal\user\Controller\UserController::userEditPage'
  requirements:
    _user_is_logged_in: 'TRUE'
