class DeployManagerEntityViewsController in Deploy - Content Staging 7.3
Views controller class for deploy manager entities.
Hierarchy
Expanded class hierarchy of DeployManagerEntityViewsController
1 string reference to 'DeployManagerEntityViewsController'
- deploy_entity_info in ./
deploy.module - Implements hook_entity_info().
File
- includes/
DeployManagerEntityViewsController.inc, line 11 - Views controller for deploy manager entities.
View source
class DeployManagerEntityViewsController extends EntityDefaultViewsController {
/**
* Edit or add extra fields to views_data().
*/
public function views_data() {
$data = parent::views_data();
$data['deploy_manager_entities'] += [
// Custom fields
'entity_label' => [
'title' => t('Entity Label'),
'help' => t('The label of the entity.'),
'field' => [
'handler' => 'deploy_views_handler_entity_label_field',
],
],
'entity_link' => [
'title' => t('Entity Link'),
'help' => t('The link to the entity.'),
'field' => [
'handler' => 'deploy_views_handler_entity_link_field',
],
],
'entity_type_label' => [
'title' => t('Entity Type Label'),
'help' => t('The label for the entity type.'),
'field' => [
'handler' => 'deploy_views_handler_entity_type_label_field',
],
],
'related_plans' => [
'title' => t('Related Plans'),
'help' => t('Other plans that contain this entity.'),
'field' => [
'handler' => 'deploy_views_handler_related_plans_field',
],
],
'revision_class' => [
'title' => t('Revision Class'),
'help' => t('CSS class name based on revision status.'),
'field' => [
'handler' => 'deploy_views_handler_revision_class_field',
],
],
'revision_status' => [
'title' => t('Revision Status'),
'help' => t('Is the current revision the latest?'),
'field' => [
'handler' => 'deploy_views_handler_revision_status_field',
],
],
];
return $data;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeployManagerEntityViewsController:: |
public | function |
Edit or add extra fields to views_data(). Overrides EntityDefaultViewsController:: |
|
EntityDefaultViewsController:: |
protected | property | ||
EntityDefaultViewsController:: |
public | function | Determines the handler to use for a relationship to an entity type. | |
EntityDefaultViewsController:: |
protected | function | Comes up with views information based on the given schema and property info. | |
EntityDefaultViewsController:: |
public static | function | A callback returning property options, suitable to be used as views options callback. | |
EntityDefaultViewsController:: |
protected | function | Try to come up with some views fields with the help of the schema and the entity property information. | |
EntityDefaultViewsController:: |
protected | function | Try to come up with some views fields with the help of the revision schema and the entity property information. | |
EntityDefaultViewsController:: |
public | function |