Skip to content

Instantly share code, notes, and snippets.

name: Manage Inventory
type: module
description: 'Provides Inventory entity.'
package: Custom
core: 8.x
package: Custom
# Route name can be used in several place (links, redirects, local actions etc.)
entity.content_entity_manage_inventory.canonical:
path: '/content_entity_manage_inventory/{content_entity_manage_inventory}'
defaults:
# Calls the view controller, defined in the annotation of the contact entity
_entity_view: 'content_entity_manage_inventory'
_title: 'Inventory Content'
requirements:
# Calls the access controller of the entity, $operation 'view'
_entity_access: 'content_entity_manage_inventory.view'