flags_ui.routing.yml in Flags 8
flags_ui/flags_ui.routing.yml
4 string references to YAML keys in flags_ui.routing.yml
- CountryMappingDeleteForm::getCancelUrl in flags_ui/
src/ Form/ CountryMappingDeleteForm.php - @inheritDoc
- CountryMappingForm::getRedirectRoute in flags_ui/
src/ Form/ CountryMappingForm.php - @inheritDoc
- LanguageConfigEntityFormBase::save in flags_ui/
src/ Form/ LanguageConfigEntityFormBase.php - Overrides Drupal\Core\Entity\EntityFormController::save().
- LanguageMappingDeleteForm::getCancelUrl in flags_ui/
src/ Form/ LanguageMappingDeleteForm.php - Gets the cancel URL.
File
flags_ui/flags_ui.routing.ymlView source
- flags.menu:
- path: '/admin/config/regional/flags'
- defaults:
- _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
- _title: 'Flags'
- requirements:
- _permission: 'administer flag mapping'
-
-
- # This is the router item for listing all entities.
- entity.country_flag_mapping.list:
- path: '/admin/config/regional/flags/countries'
- defaults:
- # '_entity_list' tells Drupal to use an entity list controller.
- # We give the entity ID here. Drupal then looks in the entity's annotation
- # and looks for the "list" entry under "controllers" for the class to load.
- # @see \Drupal\Core\Entity\Enhancer\EntityRouteEnhancer
- _entity_list: 'country_flag_mapping'
- _title: 'Flag mappings for countries'
- requirements:
- _permission: 'administer flag mapping'
-
- # This is the router item for adding our entity.
- entity.country_flag_mapping.add_form:
- path: '/admin/config/regional/flags/countries/add'
- defaults:
- _title: 'Add flag mapping for country'
- # Like _entity_list above, _entity_form gives the entity type ID, only this
- # time also lists the form separated by a period. Drupal looks in the
- # annotation for the entity and locates the "add" entry under "form" for
- # the form class to load.
- # @see \Drupal\Core\Entity\Enhancer\EntityRouteEnhancer
- _entity_form: country_flag_mapping.add
- requirements:
- _entity_create_access: country_flag_mapping
-
- # This is the router item for editing our entity.
- entity.country_flag_mapping.edit_form:
- # Parameters may be passed to the form via the URL path. We name the
- # parameter in the path by enclosing it in curly braces. For entity forms,
- # we include the entity ID in the path by including a parameter with the
- # same name as the entity type ID.
- path: '/admin/config/regional/flags/countries/{country_flag_mapping}'
- defaults:
- _title: 'Edit flag mapping for country'
- # List our add entry above, this _entity_form entry instructs Drupal to
- # read our entity type's annonation, and look for the "edit" entry under
- # "form".
- _entity_form: country_flag_mapping.edit
- requirements:
- # This uses our entity access controller.
- # @see \Drupal\Core\Entity\EntityAccessCheck
- _entity_access: country_flag_mapping.update
-
- # This is the router item for deleting an instance of our entity.
- entity.country_flag_mapping.delete_form:
- path: '/admin/config/regional/flags/countries/{country_flag_mapping}/delete'
- defaults:
- _title: 'Delete flag mapping for country'
- _entity_form: country_flag_mapping.delete
- requirements:
- _entity_access: country_flag_mapping.delete
-
- # The routing.yml file defines the paths for our module.
- # Here we define the paths for our entity type's admin UI.
-
- # This is the router item for listing all entities.
- entity.language_flag_mapping.list:
- path: '/admin/config/regional/flags/languages'
- defaults:
- # '_entity_list' tells Drupal to use an entity list controller.
- # We give the entity ID here. Drupal then looks in the entity's annotation
- # and looks for the "list" entry under "controllers" for the class to load.
- # @see \Drupal\Core\Entity\Enhancer\EntityRouteEnhancer
- _entity_list: 'language_flag_mapping'
- _title: 'Flag mapping for languages'
- requirements:
- _permission: 'administer flag mapping'
-
- # This is the router item for adding our entity.
- entity.language_flag_mapping.add_form:
- path: '/admin/config/regional/flags/languages/manage/add'
- defaults:
- _title: 'Add flag mapping'
- # Like _entity_list above, _entity_form gives the entity type ID, only this
- # time also lists the form separated by a period. Drupal looks in the
- # annotation for the entity and locates the "add" entry under "form" for
- # the form class to load.
- # @see \Drupal\Core\Entity\Enhancer\EntityRouteEnhancer
- _entity_form: language_flag_mapping.add
- requirements:
- _entity_create_access: language_flag_mapping
-
- # This is the router item for editing our entity.
- entity.language_flag_mapping.edit_form:
- # Parameters may be passed to the form via the URL path. We name the
- # parameter in the path by enclosing it in curly braces. For entity forms,
- # we include the entity ID in the path by including a parameter with the
- # same name as the entity type ID.
- path: '/admin/config/regional/flags/languages/manage/{language_flag_mapping}'
- defaults:
- _title: 'Edit flag mapping'
- # List our add entry above, this _entity_form entry instructs Drupal to
- # read our entity type's annonation, and look for the "edit" entry under
- # "form".
- _entity_form: language_flag_mapping.edit
- requirements:
- # This uses our entity access controller.
- # @see \Drupal\Core\Entity\EntityAccessCheck
- _entity_access: language_flag_mapping.update
-
- # This is the router item for deleting an instance of our entity.
- entity.language_flag_mapping.delete_form:
- path: '/admin/config/regional/flags/languages/manage/{language_flag_mapping}/delete'
- defaults:
- _title: 'Delete flag mapping'
- _entity_form: language_flag_mapping.delete
- requirements:
- _entity_access: language_flag_mapping.delete