social_lms_integrator-1.0.0-beta4/modules/social_lms_integrator_enrollment_method/social_lms_integrator_enrollment_method.routing.yml
modules/social_lms_integrator_enrollment_method/social_lms_integrator_enrollment_method.routing.yml
# 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.iteration_enrollment_method.list:
path: '/admin/config/social_lms_integrator/social-lms-integrator-enrollment-method'
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: iteration_enrollment_method
_title: 'Iteration Enrollment Method'
requirements:
_permission: 'administer iteration enrollment method'
# This is the router item for adding our entity.
entity.iteration_enrollment_method.add_form:
path: '/admin/config/social_lms_integrator/social-lms-integrator-enrollment-method/add'
defaults:
_title: 'Add Iteration Enrollment Method'
# 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: iteration_enrollment_method.add
requirements:
_entity_create_access: iteration_enrollment_method
# This is the router item for editing our entity.
entity.iteration_enrollment_method.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/social_lms_integrator/social-lms-integrator-enrollment-method/manage/{iteration_enrollment_method}'
defaults:
_title: 'Edit Iteration Enrollment Method'
# 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: iteration_enrollment_method.edit
requirements:
# This uses our entity access controller.
# @see \Drupal\Core\Entity\EntityAccessCheck
_entity_access: iteration_enrollment_method.update
# This is the router item for deleting an instance of our entity.
entity.iteration_enrollment_method.delete_form:
path: '/admin/config/social_lms_integrator/social-lms-integrator-enrollment-method/manage/{iteration_enrollment_method}/delete'
defaults:
_title: 'Delete Iteration Enrollment Method'
_entity_form: iteration_enrollment_method.delete
requirements:
_entity_access: iteration_enrollment_method.delete
