Commit 045cc3a7 authored by webchick's avatar webchick

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
......@@ -23,17 +23,9 @@
* label = @Translation("View"),
* module = "views",
* controllers = {
* "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"
* }
* "storage" = "Drupal\views\ViewStorageController"
* },
* config_prefix = "views.view",
* fieldable = FALSE,
* entity_keys = {
* "id" = "id",
* "label" = "label",
......
......@@ -98,6 +98,21 @@ function views_ui_menu() {
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().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment