function views_entity_info in Views (for Drupal 7) 8.3
Implements hook_entity_info().
File
- ./
views.module, line 75 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_entity_info() {
$return = array(
'view' => array(
'label' => t('View'),
'entity class' => 'Drupal\\views\\ViewStorage',
'controller class' => 'Drupal\\views\\ViewStorageController',
'list controller class' => 'Drupal\\views_ui\\ViewListController',
'list path' => 'admin/structure/views',
'form controller class' => array(
'default' => 'Drupal\\node\\NodeFormController',
),
'config prefix' => 'views.view',
'fieldable' => FALSE,
'entity keys' => array(
'id' => 'name',
'label' => 'human_name',
'uuid' => 'uuid',
),
),
);
return $return;
}