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

8.0.x
webchick 2013-05-03 10:25:44 -07:00
parent f83208f282
commit 045cc3a707
2 changed files with 16 additions and 9 deletions

View File

@ -23,17 +23,9 @@ use Drupal\Core\Annotation\Translation;
* 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",

View File

@ -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().
*/