class ViewsUiTaxonomyTermViewsWizard
Tests creating taxonomy views with the wizard.
Hierarchy
- class \ViewsUiBaseViewsWizard implements ViewsWizardInterface
Expanded class hierarchy of ViewsUiTaxonomyTermViewsWizard
1 string reference to 'ViewsUiTaxonomyTermViewsWizard'
- taxonomy_term.inc in plugins/
views_wizard/ taxonomy_term.inc - Views wizard for taxonomy term views.
File
- plugins/
views_wizard/ views_ui_taxonomy_term_views_wizard.class.php, line 11 - Definition of ViewsUiTaxonomyTermViewsWizard.
View source
class ViewsUiTaxonomyTermViewsWizard extends ViewsUiBaseViewsWizard {
protected function default_display_options($form, $form_state) {
$display_options = parent::default_display_options($form, $form_state);
// Add permission-based access control.
$display_options['access']['type'] = 'perm';
// Remove the default fields, since we are customizing them here.
unset($display_options['fields']);
/* Field: Taxonomy: Term */
$display_options['fields']['name']['id'] = 'name';
$display_options['fields']['name']['table'] = 'taxonomy_term_data';
$display_options['fields']['name']['field'] = 'name';
$display_options['fields']['name']['label'] = '';
$display_options['fields']['name']['alter']['alter_text'] = 0;
$display_options['fields']['name']['alter']['make_link'] = 0;
$display_options['fields']['name']['alter']['absolute'] = 0;
$display_options['fields']['name']['alter']['trim'] = 0;
$display_options['fields']['name']['alter']['word_boundary'] = 0;
$display_options['fields']['name']['alter']['ellipsis'] = 0;
$display_options['fields']['name']['alter']['strip_tags'] = 0;
$display_options['fields']['name']['alter']['html'] = 0;
$display_options['fields']['name']['hide_empty'] = 0;
$display_options['fields']['name']['empty_zero'] = 0;
$display_options['fields']['name']['link_to_taxonomy'] = 1;
return $display_options;
}
}
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ViewsUiBaseViewsWizard:: |
protected | property | |
ViewsUiBaseViewsWizard:: |
protected | property | |
ViewsUiBaseViewsWizard:: |
protected | property | |
ViewsUiBaseViewsWizard:: |
protected | property | |
ViewsUiBaseViewsWizard:: |
protected | property | |
ViewsUiBaseViewsWizard:: |
protected | property | |
ViewsUiBaseViewsWizard:: |
protected | function | Add the array of display options to the view, with appropriate overrides. |
ViewsUiBaseViewsWizard:: |
protected | function | Alter the full array of display options before they are added to the view. |
ViewsUiBaseViewsWizard:: |
protected | function | |
ViewsUiBaseViewsWizard:: |
protected | function | Build an array of display options for the view. |
ViewsUiBaseViewsWizard:: |
protected | function | Build the part of the form that allows the user to select the view's filters. |
ViewsUiBaseViewsWizard:: |
function |
For AJAX callbacks to build other elements in the "show" form. Overrides ViewsWizardInterface:: |
|
ViewsUiBaseViewsWizard:: |
protected | function | Build the part of the form that builds the display format options. |
ViewsUiBaseViewsWizard:: |
protected | function | Build the part of the form that allows the user to select the view's sort order. |
ViewsUiBaseViewsWizard:: |
function |
Create a View from values that have been already submitted to validate(). Overrides ViewsWizardInterface:: |
|
ViewsUiBaseViewsWizard:: |
protected | function | |
ViewsUiBaseViewsWizard:: |
protected | function | |
ViewsUiBaseViewsWizard:: |
protected | function | |
ViewsUiBaseViewsWizard:: |
protected | function | |
ViewsUiBaseViewsWizard:: |
protected | function | |
ViewsUiBaseViewsWizard:: |
protected | function | |
ViewsUiBaseViewsWizard:: |
protected | function | |
ViewsUiBaseViewsWizard:: |
protected | function | |
ViewsUiBaseViewsWizard:: |
protected | function | Add possible row style options. |
ViewsUiBaseViewsWizard:: |
protected | function | Sets options for a display and makes them the default options if possible. |
ViewsUiBaseViewsWizard:: |
protected | function | Sets options for a display, inheriting from the defaults when possible. |
ViewsUiBaseViewsWizard:: |
protected | function | |
ViewsUiBaseViewsWizard:: |
function |
Instantiates a view and validates values. Overrides ViewsWizardInterface:: |
|
ViewsUiBaseViewsWizard:: |
function |
Overrides ViewsWizardInterface:: |
|
ViewsUiTaxonomyTermViewsWizard:: |
protected | function |
Most subclasses will need to override this method to provide some fields
or a different row plugin. Overrides ViewsUiBaseViewsWizard:: |