Skip to content

Instantly share code, notes, and snippets.

@fubhy
Created June 24, 2013 22:33
Show Gist options
  • Save fubhy/5854304 to your computer and use it in GitHub Desktop.
Save fubhy/5854304 to your computer and use it in GitHub Desktop.
node_page_edit:
pattern: '/music/{album}/{artist}'
defaults:
_content: 'Drupal\music\MusicController::view'
requirements:
_permission: 'yeap'
options:
parameters:
album:
converter: 'paramconverter.typed_data'
definition:
type: 'entity'
constraints:
EntityType: 'album'
artist:
converter: 'paramconverter.typed_data'
definition:
type: 'entity'
constraints:
EntityType: 'artist'
node_page_edit:
pattern: '/music/{album}/{artist}'
defaults:
_content: 'Drupal\music\MusicController::view'
requirements:
_permission: 'yeap'
options:
parameters:
album:
converter: 'paramconverter.typed_data'
definition:
type: 'entity:album'
artist:
converter: 'paramconverter.typed_data'
definition:
type: 'entity:artist'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment