function views_ui_entity_type_build
Same name in other branches
- 9 core/modules/views_ui/views_ui.module \views_ui_entity_type_build()
- 10 core/modules/views_ui/views_ui.module \views_ui_entity_type_build()
- 11.x core/modules/views_ui/views_ui.module \views_ui_entity_type_build()
Implements hook_entity_type_build().
File
-
core/
modules/ views_ui/ views_ui.module, line 38
Code
function views_ui_entity_type_build(array &$entity_types) {
/** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */
$entity_types['view']->setFormClass('edit', 'Drupal\\views_ui\\ViewEditForm')
->setFormClass('add', 'Drupal\\views_ui\\ViewAddForm')
->setFormClass('preview', 'Drupal\\views_ui\\ViewPreviewForm')
->setFormClass('duplicate', 'Drupal\\views_ui\\ViewDuplicateForm')
->setFormClass('delete', 'Drupal\\Core\\Entity\\EntityDeleteForm')
->setFormClass('break_lock', 'Drupal\\views_ui\\Form\\BreakLockForm')
->setListBuilderClass('Drupal\\views_ui\\ViewListBuilder')
->setLinkTemplate('edit-form', '/admin/structure/views/view/{view}')
->setLinkTemplate('edit-display-form', '/admin/structure/views/view/{view}/edit/{display_id}')
->setLinkTemplate('preview-form', '/admin/structure/views/view/{view}/preview/{display_id}')
->setLinkTemplate('duplicate-form', '/admin/structure/views/view/{view}/duplicate')
->setLinkTemplate('delete-form', '/admin/structure/views/view/{view}/delete')
->setLinkTemplate('enable', '/admin/structure/views/view/{view}/enable')
->setLinkTemplate('disable', '/admin/structure/views/view/{view}/disable')
->setLinkTemplate('break-lock-form', '/admin/structure/views/view/{view}/break-lock')
->setLinkTemplate('collection', '/admin/structure/views');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.