class ViewsUiTaxonomyTermViewsWizard

Tests creating taxonomy views with the wizard.

Hierarchy

Expanded class hierarchy of ViewsUiTaxonomyTermViewsWizard

1 string reference to 'ViewsUiTaxonomyTermViewsWizard'
taxonomy_term.inc in plugins/views_wizard/taxonomy_term.inc

File

plugins/views_wizard/views_ui_taxonomy_term_views_wizard.class.php, line 11

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';
        $display_options['access']['perm'] = 'access content';
        // 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

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
ViewsUiBaseViewsWizard::$base_table protected property
ViewsUiBaseViewsWizard::$entity_info protected property
ViewsUiBaseViewsWizard::$entity_type protected property
ViewsUiBaseViewsWizard::$filter_defaults protected property
ViewsUiBaseViewsWizard::$plugin protected property
ViewsUiBaseViewsWizard::$validated_views protected property
ViewsUiBaseViewsWizard::add_displays protected function Add the array of display options to the view, with appropriate overrides.
ViewsUiBaseViewsWizard::alter_display_options protected function Alter the full array of display options before they are added to the view.
ViewsUiBaseViewsWizard::block_display_options protected function 2
ViewsUiBaseViewsWizard::build_display_options protected function Build an array of display options for the view.
ViewsUiBaseViewsWizard::build_filters protected function Build the part of the form that allows the user to select the filters.
ViewsUiBaseViewsWizard::build_form public function For AJAX callbacks to build other elements in the "show" form. Overrides ViewsWizardInterface::build_form
ViewsUiBaseViewsWizard::build_form_style protected function Build the part of the form that builds the display format options. 2
ViewsUiBaseViewsWizard::build_sorts protected function Build the part of the form that allows the user to select the sort order.
ViewsUiBaseViewsWizard::create_view public function Create a View from values that have been already submitted to validate(). Overrides ViewsWizardInterface::create_view
ViewsUiBaseViewsWizard::default_display_filters protected function
ViewsUiBaseViewsWizard::default_display_filters_user protected function
ViewsUiBaseViewsWizard::default_display_sorts protected function
ViewsUiBaseViewsWizard::default_display_sorts_user protected function
ViewsUiBaseViewsWizard::instantiate_view protected function
ViewsUiBaseViewsWizard::page_display_options protected function 2
ViewsUiBaseViewsWizard::page_feed_display_options protected function
ViewsUiBaseViewsWizard::retrieve_validated_view protected function
ViewsUiBaseViewsWizard::row_style_options protected function Add possible row style options. 2
ViewsUiBaseViewsWizard::set_default_options protected function Sets options for a display and makes them the default options if possible.
ViewsUiBaseViewsWizard::set_override_options protected function Sets options for a display, inheriting from the defaults when possible.
ViewsUiBaseViewsWizard::set_validated_view protected function
ViewsUiBaseViewsWizard::validate public function Instantiates a view and validates values. Overrides ViewsWizardInterface::validate
ViewsUiBaseViewsWizard::__construct public function Constructor. Overrides ViewsWizardInterface::__construct
ViewsUiTaxonomyTermViewsWizard::default_display_options protected function Most subclasses will need to override this method to provide some fields
or a different row plugin.
Overrides ViewsUiBaseViewsWizard::default_display_options