You are here

class EasyBreadcrumbConstants in Easy Breadcrumb 6

Same name and namespace in other branches
  1. 7.2 includes/EasyBreadcrumbConstants.inc \EasyBreadcrumbConstants
  2. 7 includes/EasyBreadcrumbConstants.inc \EasyBreadcrumbConstants

EasyBreadcrumb module's contants

Hierarchy

Expanded class hierarchy of EasyBreadcrumbConstants

1 string reference to 'EasyBreadcrumbConstants'
easy_breadcrumb_uninstall in ./easy_breadcrumb.install
Implements hook_uninstall().

File

includes/EasyBreadcrumbConstants.inc, line 10
Module's contants.

View source
class EasyBreadcrumbConstants {

  /**
   * Module's name.
   */
  const MODULE_NAME = 'easy_breadcrumb';

  /**
   * Flag for disabling or not the default Drupal's breadcrumb.
   */
  const DB_VAR_DISABLE_DEFAULT_DRUPAL_BREADCRUMB = 'easy_breadcrumb-disable_drupal_breadcrumb';

  /**
   * Flag for including invalid paths while generating the breadcrumb segments.
   */
  const DB_VAR_INCLUDE_INVALID_PATHS = 'easy_breadcrumb-include_invalid_paths';

  /**
   *  Separator between segments.
   */
  const DB_VAR_SEGMENTS_SEPARATOR = 'easy_breadcrumb-segments_separator';

  /**
   * Flag for including or not the front page as a segment.
   */
  const DB_VAR_INCLUDE_HOME_SEGMENT = 'easy_breadcrumb-include_home_segment';

  /**
   * Flag for including or not the page's title as a segment.
   */
  const DB_VAR_INCLUDE_TITLE_SEGMENT = 'easy_breadcrumb-include_title_segment';

  /**
   * Flag for printing the page's title as a link, or printing it as a text.
   */
  const DB_VAR_TITLE_SEGMENT_AS_LINK = 'easy_breadcrumb-title_segment_as_link';

  /**
   * Use the page's title when it is available instead of always trying to
   * deduce it from the URL.
   */
  const DB_VAR_TITLE_FROM_PAGE_WHEN_AVAILABLE = 'easy_breadcrumb-title_from_page_when_available';

  /**
   * Transformation mode to apply to the segments.
   */
  const DB_VAR_CAPITALIZATOR_MODE = 'easy_breadcrumb-capitalizator_mode';

  /**
   * List of words to be ignored by the 'capitalizator'. E.g.: of and.
   */
  const DB_VAR_CAPITALIZATOR_IGNORED_WORDS = 'easy_breadcrumb-capitalizator_ignored_words';

  /**
   * Default list of ignored words.
   *
   * @return array
   *   Default list of ignored words.
   */
  public static function defaultIgnoredWords() {
    static $default_ignored_words = array(
      'of',
      'and',
      'or',
      'de',
      'del',
      'y',
      'o',
    );
    return $default_ignored_words;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EasyBreadcrumbConstants::DB_VAR_CAPITALIZATOR_IGNORED_WORDS constant List of words to be ignored by the 'capitalizator'. E.g.: of and.
EasyBreadcrumbConstants::DB_VAR_CAPITALIZATOR_MODE constant Transformation mode to apply to the segments.
EasyBreadcrumbConstants::DB_VAR_DISABLE_DEFAULT_DRUPAL_BREADCRUMB constant Flag for disabling or not the default Drupal's breadcrumb.
EasyBreadcrumbConstants::DB_VAR_INCLUDE_HOME_SEGMENT constant Flag for including or not the front page as a segment.
EasyBreadcrumbConstants::DB_VAR_INCLUDE_INVALID_PATHS constant Flag for including invalid paths while generating the breadcrumb segments.
EasyBreadcrumbConstants::DB_VAR_INCLUDE_TITLE_SEGMENT constant Flag for including or not the page's title as a segment.
EasyBreadcrumbConstants::DB_VAR_SEGMENTS_SEPARATOR constant Separator between segments.
EasyBreadcrumbConstants::DB_VAR_TITLE_FROM_PAGE_WHEN_AVAILABLE constant Use the page's title when it is available instead of always trying to deduce it from the URL.
EasyBreadcrumbConstants::DB_VAR_TITLE_SEGMENT_AS_LINK constant Flag for printing the page's title as a link, or printing it as a text.
EasyBreadcrumbConstants::defaultIgnoredWords public static function Default list of ignored words.
EasyBreadcrumbConstants::MODULE_NAME constant Module's name.