flipbook.routing.yml in 3D Flipbook 8
1 string reference to YAML keys in flipbook.routing.yml
- FlipbookListBuilder::render in src/Entity/Controller/FlipbookListBuilder.php
- We override ::render() so that we can add our own content above the table.
parent::render() is where EntityListBuilder creates the table using our
buildHeader() and buildRow() implementations.
File
flipbook.routing.yml
View source
- # This file brings everything together. Very nifty!
-
- # Route name can be used in several places; e.g. links, redirects, and local
- # actions.
- entity.flipbook.canonical:
- path: '/flipbook/{flipbook}'
- defaults:
- # Calls the view controller, defined in the annotation of the contact entity
- _entity_view: 'flipbook'
- _title: 'Flipbook Content'
- requirements:
- # Calls the access controller of the entity, $operation 'view'
- _entity_access: 'flipbook.view'
-
- entity.flipbook.collection:
- path: '/admin/structure/flipbook/list'
- defaults:
- # Calls the list controller, defined in the annotation of the contact entity.
- _entity_list: 'flipbook'
- _title: 'Flipbook List'
- requirements:
- # Checks for permission directly.
- _permission: 'administer flipbook entity'
-
- flipbook.add:
- path: '/admin/structure/flipbook/add'
- defaults:
- # Calls the form.add controller, defined in the contact entity.
- _entity_form: flipbook.add
- _title: 'Add Flipbook'
- requirements:
- _entity_create_access: 'flipbook'
-
- entity.flipbook.edit_form:
- path: '/admin/structure/flipbook/{flipbook}/edit'
- defaults:
- # Calls the form.edit controller, defined in the contact entity.
- _entity_form: flipbook.edit
- _title: 'Edit Flipbook'
- requirements:
- _entity_access: 'flipbook.edit'
-
- entity.flipbook.delete_form:
- path: '/admin/structure/contact/{flipbook}/delete'
- defaults:
- # Calls the form.delete controller, defined in the contact entity.
- _entity_form: flipbook.delete
- _title: 'Delete Flipbook'
- requirements:
- _entity_access: 'flipbook.delete'
-
- flipbook.settings:
- path: 'admin/structure/flipbook_settings'
- defaults:
- _form: '\Drupal\flipbook\Form\FlipbookSettingsForm'
- _title: 'Flipbook Settings'
- requirements:
- _permission: 'administer flipbook entity'
- flipbook.chooseform:
- path: '/admin/config/choosepdfstyle'
- defaults:
- _form: 'Drupal\flipbook\Form\ChoosePdfStyleForm'
- _title: 'FlipBook Pdf Style Settings'
- requirements:
- _permission: 'access content'