Issue #1981312 by tim.plunkett, dawehner: Move views_ui() code out of the View entity type annotation.
parent
f83208f282
commit
045cc3a707
|
@ -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",
|
||||
|
|
|
@ -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().
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue