commerce_inventory-8.x-1.0-alpha6/commerce_inventory.links.task.yml

commerce_inventory.links.task.yml
# Inventory Location routing definition
entity.commerce_inventory_location.canonical:
  route_name: entity.commerce_inventory_location.canonical
  base_route: entity.commerce_inventory_location.canonical
  title: 'Overview'

entity.commerce_inventory_location.inventory:
  route_name: entity.commerce_inventory_location.inventory
  base_route: entity.commerce_inventory_location.canonical
  title: 'Inventory'
  weight: 5

entity.commerce_inventory_location.edit_form:
  route_name: entity.commerce_inventory_location.edit_form
  base_route: entity.commerce_inventory_location.canonical
  title: 'Edit'
  weight: 10

entity.commerce_inventory_location.status_form:
  route_name: entity.commerce_inventory_location.status_form
  base_route: entity.commerce_inventory_location.canonical
  title: 'Status'
  weight: 15
  class: '\Drupal\core_extend\Plugin\Menu\ContentEntityModifyStatusTab'

entity.commerce_inventory_location.delete_form:
  route_name: entity.commerce_inventory_location.delete_form
  base_route: entity.commerce_inventory_location.canonical
  title: 'Delete'
  weight: 20

entity.commerce_inventory_location.inventory_subtab:
  route_name: entity.commerce_inventory_location.inventory
  base_route: entity.commerce_inventory_location.inventory_subtab
  parent_id: entity.commerce_inventory_location.inventory
  title: 'All Inventory'
  weight: 0

entity.commerce_inventory_location.inventory_adjustments:
  route_name: entity.commerce_inventory_location.inventory_adjustments
  base_route: entity.commerce_inventory_location.inventory_adjustments
  parent_id: entity.commerce_inventory_location.inventory
  title: 'On-Hand Adjustments'
  weight: 1

# Inventory Item routing definition
entity.commerce_inventory_item.collection:
  route_name: entity.commerce_inventory_item.collection
  base_route: entity.commerce_inventory_item.collection
  title: 'All Inventory'

entity.commerce_inventory_item.canonical:
  route_name: entity.commerce_inventory_item.canonical
  base_route: entity.commerce_inventory_item.canonical
#  parent_id: entity.commerce_inventory_location.inventory
  title: 'Overview'
  weight: 5

entity.commerce_inventory_item.adjustments:
  route_name:  entity.commerce_inventory_item.adjustments
  base_route:  entity.commerce_inventory_item.canonical
#  parent_id: entity.commerce_inventory_location.inventory
  title: 'Adjustments'
  weight: 10

entity.commerce_inventory_item.adjustments.on_hand:
  route_name:  entity.commerce_inventory_item.adjustments
  base_route:  entity.commerce_inventory_item.adjustments
  parent_id: entity.commerce_inventory_item.adjustments
  title: 'On-hand adjustments'
  weight: 10

entity.commerce_inventory_item.edit_form:
  route_name: entity.commerce_inventory_item.edit_form
  base_route: entity.commerce_inventory_item.canonical
#  parent_id: entity.commerce_inventory_location.inventory
  title: 'Edit'
  weight: 15

entity.commerce_inventory_item.status_form:
  route_name: entity.commerce_inventory_item.status_form
  base_route: entity.commerce_inventory_item.canonical
#  parent_id: entity.commerce_inventory_location.inventory
  title: 'Status'
  weight: 20
  class: '\Drupal\core_extend\Plugin\Menu\ContentEntityModifyStatusTab'

entity.commerce_inventory_item.delete_form:
  route_name:  entity.commerce_inventory_item.delete_form
  base_route:  entity.commerce_inventory_item.canonical
#  parent_id: entity.commerce_inventory_location.inventory
  title: 'Delete'
  weight: 25

entity.commerce_inventory_item.adjust_form:
  route_name:  entity.commerce_inventory_item.adjust_form
  base_route:  entity.commerce_inventory_item.adjustments
  parent_id: entity.commerce_inventory_item.adjustments
  title: 'Adjust'
  weight: 0

# Inventory Adjustment routing definition
entity.commerce_inventory_adjustment.collection:
  route_name: entity.commerce_inventory_adjustment.collection
  base_route: entity.commerce_inventory_item.collection
  title: 'Adjustments'

entity.commerce_inventory_adjustment.canonical:
  route_name: entity.commerce_inventory_adjustment.canonical
  base_route: entity.commerce_inventory_adjustment.canonical
  title: 'View'

entity.commerce_inventory_adjustment.edit_form:
  route_name: entity.commerce_inventory_adjustment.edit_form
  base_route: entity.commerce_inventory_adjustment.canonical
  title: 'Edit'

entity.commerce_inventory_adjustment.delete_form:
  route_name:  entity.commerce_inventory_adjustment.delete_form
  base_route:  entity.commerce_inventory_adjustment.canonical
  title: 'Delete'
  weight: 10

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

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