eav_field-2.x-dev/eav_field.routing.yml

eav_field.routing.yml
# Attribute "Add" form
entity.eav_attribute.add_form:
  path: '/admin/structure/eav/attributes/add'
  defaults:
    _entity_form: eav_attribute.add
    _title: 'Adding attribute'
  requirements:
    _permission: 'administer eav attributes'

# Attribute "Edit" form
entity.eav_attribute.edit_form:
  path: '/admin/structure/eav/attributes/{eav_attribute}/edit'
  defaults:
    _entity_form: eav_attribute.edit
    _title: 'Editing attribute'
  requirements:
    _permission: 'administer eav attributes'

# Attribute "Storage settings" form
entity.eav_attribute.value_storage_form:
  path: '/admin/structure/eav/attributes/{eav_attribute}/storage'
  defaults:
    _controller: '\Drupal\eav_field\Controller\EavAttributeController::valueStorageSettingsForm'
  requirements:
    _permission: 'administer eav attributes'

# Attribute "Value settings" form
entity.eav_attribute.value_field_form:
  path: '/admin/structure/eav/attributes/{eav_attribute}/field'
  defaults:
    _controller: '\Drupal\eav_field\Controller\EavAttributeController::valueFieldSettingsForm'
  requirements:
    _permission: 'administer eav attributes'

# Attribute "Value widget settings" form
entity.eav_attribute.value_widget_form:
  path: '/admin/structure/eav/attributes/{eav_attribute}/widget'
  defaults:
    _form: '\Drupal\eav_field\Form\EavAttributeValueWidgetSettingsForm'
    _title: 'Widget settings'
  requirements:
    _permission: 'administer eav attributes'

# Attribute "Value formatter settings" form
entity.eav_attribute.value_formatter_form:
  path: '/admin/structure/eav/attributes/{eav_attribute}/formatter'
  defaults:
    _form: '\Drupal\eav_field\Form\EavAttributeValueFormatterSettingsForm'
    _title: 'Formatter settings'
  requirements:
    _permission: 'administer eav attributes'

# Attribute "Delete form"
entity.eav_attribute.delete_form:
  path: '/admin/structure/eav/attributes/{eav_attribute}/delete'
  defaults:
    _entity_form: eav_attribute.delete
    _title: 'Delete attribute'
  requirements:
    _permission: 'administer eav attributes'

# Attributes list
entity.eav_attribute.collection:
  path: '/admin/structure/eav/attributes'
  defaults:
    _entity_list: eav_attribute
    _title: 'Attributes'
  requirements:
    _permission: 'administer eav attributes'

# Admin menu group
eav_field.admin_structure:
  path: '/admin/structure/eav'
  defaults:
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
    _title: 'EAV'
  requirements:
    _permission: 'access administration pages'

route_callbacks:
  - '\Drupal\eav_field\Routing\EavFieldRoutes::routes'

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc