views_ui_entity_type_build

views_ui_entity_type_build(array &$entity_types)

Implements hook_entity_type_build().

File

core/modules/views_ui/views_ui.module, line 39
Provide structure for the administrative interface to Views.

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');
}
doc_Drupal
2016-10-29 09:55:42
Comments
Leave a Comment

Please login to continue.