pet.routing.yml in Previewable email templates 8
3 string references to YAML keys in pet.routing.yml
- PetDeleteForm::submitForm in src/Form/PetDeleteForm.php
- This is the default entity object builder function. It is called before any
other submit handler to build the new entity object to be used by the
following submit handlers. At this point of the form workflow the entity is
validated and the form state…
- PetForm::save in src/Form/PetForm.php
- Form submission handler for the 'save' action.
- PetListBuilder::buildRow in src/Controller/PetListBuilder.php
- Builds a row for an entity in the entity listing.
File
pet.routing.yml
View source
- pet.settings:
- path: 'admin/config/system/pet/settings'
- defaults:
- _form: '\Drupal\pet\Form\PetSettingsForm'
- _title: 'Previewable Email Template Settings'
- requirements:
- _permission: 'administer PET entity'
-
- entity.pet.collection:
- path: '/admin/structure/pets'
- defaults:
- _entity_list: 'pet'
- _title: 'Previewable Email Templates'
- requirements:
- _permission: 'view PET entity'
-
- pet.preview:
- path: '/pet/{pet}'
- defaults:
- _form: '\Drupal\pet\Form\PetPreviewForm'
- _title: 'Previewable Email Template Preview'
- requirements:
- _permission: 'view PET entity'