You are here

GlobalConstantUnitTest.inc in Coder 8.3

Same filename and directory in other branches
  1. 8.3.x tests/DrupalPractice/Constants/GlobalConstantUnitTest.inc

File

tests/DrupalPractice/Constants/GlobalConstantUnitTest.inc
View source
<?php

const FOO_BAR = 0;

/**
 * Some comment.
 */
const FOO_BAR2 = 1;

/**
 * This should not throw a warning because the constant is deprecated.
 *
 * @deprecated in Drupal 8.1.x.
 */
const FOO_BAR3 = 2;

/**
 * Provides an interface defining a taxonomy vocabulary entity.
 */
interface VocabularyInterface extends ConfigEntityInterface {

  /**
   * Denotes that no term in the vocabulary has a parent.
   */
  const HIERARCHY_DISABLED = 0;

}

Constants

Namesort descending Description
FOO_BAR
FOO_BAR2 Some comment.
FOO_BAR3 Deprecated This should not throw a warning because the constant is deprecated.

Interfaces

Namesort descending Description
VocabularyInterface Provides an interface defining a taxonomy vocabulary entity.