Skip to content
Snippets Groups Projects
Commit 045cc3a7 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1981312 by tim.plunkett, dawehner: Move views_ui() code out of the View...

Issue #1981312 by tim.plunkett, dawehner: Move views_ui() code out of the View entity type annotation.
parent f83208f2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -23,17 +23,9 @@ ...@@ -23,17 +23,9 @@
* label = @Translation("View"), * label = @Translation("View"),
* module = "views", * module = "views",
* controllers = { * controllers = {
* "storage" = "Drupal\views\ViewStorageController", * "storage" = "Drupal\views\ViewStorageController"
* "list" = "Drupal\views_ui\ViewListController",
* "form" = {
* "edit" = "Drupal\views_ui\ViewEditFormController",
* "add" = "Drupal\views_ui\ViewAddFormController",
* "preview" = "Drupal\views_ui\ViewPreviewFormController",
* "clone" = "Drupal\views_ui\ViewCloneFormController"
* }
* }, * },
* config_prefix = "views.view", * config_prefix = "views.view",
* fieldable = FALSE,
* entity_keys = { * entity_keys = {
* "id" = "id", * "id" = "id",
* "label" = "label", * "label" = "label",
......
...@@ -98,6 +98,21 @@ function views_ui_menu() { ...@@ -98,6 +98,21 @@ function views_ui_menu() {
return $items; return $items;
} }
/**
* Implements hook_entity_info().
*/
function views_ui_entity_info(&$entity_info) {
$entity_info['view']['controllers'] += array(
'list' => 'Drupal\views_ui\ViewListController',
'form' => array(
'edit' => 'Drupal\views_ui\ViewEditFormController',
'add' => 'Drupal\views_ui\ViewAddFormController',
'preview' => 'Drupal\views_ui\ViewPreviewFormController',
'clone' => 'Drupal\views_ui\ViewCloneFormController',
),
);
}
/** /**
* Implements hook_theme(). * Implements hook_theme().
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment