You are here

class TaxonomyDisplayBreadcrumbDisplayHandlerIgnore in Taxonomy display 7

Add a display handler to not set any breadcrumb.

Hierarchy

Expanded class hierarchy of TaxonomyDisplayBreadcrumbDisplayHandlerIgnore

File

handlers/breadcrumb/ignore.inc, line 6

View source
class TaxonomyDisplayBreadcrumbDisplayHandlerIgnore extends TaxonomyDisplayBreadcrumbDisplayHandlerCore {

  /**
   * Do not display anything to the user, we return an empty string.
   *
   * @see TaxonomyDisplayBreadcrumbDisplayHandler::buildBreacrumb()
   */
  public function buildBreadcrumb($term) {
  }

  /**
   * Set a description when the user selects this option.
   *
   * @see TaxonomyDisplayHandlerForm::formFieldset()
   */
  public function formFieldset(&$form, &$values, $options = NULL) {
    $form['#description'] = t('A breadcrumb will not be set, allowing other modules to do so.');
  }

  /**
   * Do not want anything stored, return void.
   *
   * @see TaxonomyDisplayHandlerForm::formSubmit()
   */
  public function formSubmit($form, &$values) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TaxonomyDisplayBreadcrumbDisplayHandlerIgnore::buildBreadcrumb public function Do not display anything to the user, we return an empty string. Overrides TaxonomyDisplayBreadcrumbDisplayHandlerCore::buildBreadcrumb
TaxonomyDisplayBreadcrumbDisplayHandlerIgnore::formFieldset public function Set a description when the user selects this option. Overrides TaxonomyDisplayBreadcrumbDisplayHandlerCore::formFieldset
TaxonomyDisplayBreadcrumbDisplayHandlerIgnore::formSubmit public function Do not want anything stored, return void. Overrides TaxonomyDisplayBreadcrumbDisplayHandlerCore::formSubmit
TaxonomyDisplayHandlerForm::formValidate public function Perform validation on the custom formFieldset when the user submits. 1