You are here

interface ConditionalFieldsInterface in Conditional Fields 4.x

Same name and namespace in other branches
  1. 8 src/ConditionalFieldsInterface.php \Drupal\conditional_fields\ConditionalFieldsInterface

Provides an interface.

Hierarchy

Expanded class hierarchy of ConditionalFieldsInterface

All classes that implement ConditionalFieldsInterface

31 files declare their use of ConditionalFieldsInterface
Checkbox.php in src/Plugin/conditional_fields/handler/Checkbox.php
ConditionalFieldCheckboxesTest.php in tests/src/FunctionalJavascript/ConditionalFieldCheckboxesTest.php
ConditionalFieldDateListTest.php in tests/src/FunctionalJavascript/ConditionalFieldDateListTest.php
ConditionalFieldDateTimeTest.php in tests/src/FunctionalJavascript/ConditionalFieldDateTimeTest.php
ConditionalFieldEditForm.php in src/Form/ConditionalFieldEditForm.php

... See full list

File

src/ConditionalFieldsInterface.php, line 8

Namespace

Drupal\conditional_fields
View source
interface ConditionalFieldsInterface {

  /**
   * Dependency is triggered if the dependee has a certain value.
   */
  const CONDITIONAL_FIELDS_DEPENDENCY_VALUES_WIDGET = 1;

  /**
   * Dependency is triggered if the dependee has all values.
   */
  const CONDITIONAL_FIELDS_DEPENDENCY_VALUES_AND = 2;

  /**
   * Dependency is triggered if the dependee has any of the values.
   */
  const CONDITIONAL_FIELDS_DEPENDENCY_VALUES_OR = 3;

  /**
   * Dependency is triggered if the dependee has only one of the values.
   */
  const CONDITIONAL_FIELDS_DEPENDENCY_VALUES_XOR = 4;

  /**
   * Dependency is triggered if the dependee does not have any of the values.
   */
  const CONDITIONAL_FIELDS_DEPENDENCY_VALUES_NOT = 5;

  /**
   * Dependency is triggered if the dependee values match a regular expression.
   */
  const CONDITIONAL_FIELDS_DEPENDENCY_VALUES_REGEX = 6;

  /**
   * Field view setting.
   *
   * Dependent is shown only if the dependency is triggered.
   */
  const CONDITIONAL_FIELDS_FIELD_VIEW_EVALUATE = 1;

  /**
   * Field view setting.
   *
   * Dependent is shown only if the dependee is shown as well.
   */
  const CONDITIONAL_FIELDS_FIELD_VIEW_HIDE_ORPHAN = 2;

  /**
   * Field view setting.
   *
   * Dependent is highlighted if the dependency is not triggered.
   */
  const CONDITIONAL_FIELDS_FIELD_VIEW_HIGHLIGHT = 3;

  /**
   * Field view setting.
   *
   * Dependent has a textual description of the dependency.
   */
  const CONDITIONAL_FIELDS_FIELD_VIEW_DESCRIBE = 4;

  /**
   * Field view setting.
   *
   * Dependent is shown only if the dependee is shown as well
   * and the dependency evaluates to TRUE.
   */
  const CONDITIONAL_FIELDS_FIELD_VIEW_HIDE_UNTRIGGERED_ORPHAN = 5;

  /**
   * Field edit setting.
   *
   * Dependent is shown only if the dependee is shown as well.
   */
  const CONDITIONAL_FIELDS_FIELD_EDIT_HIDE_ORPHAN = 1;

  /**
   * Field edit setting.
   *
   * Dependent is shown only if the dependee is shown as well
   * and the dependency evaluates to TRUE.
   */
  const CONDITIONAL_FIELDS_FIELD_EDIT_HIDE_UNTRIGGERED_ORPHAN = 2;

  /**
   * Field edit setting.
   *
   * Dependent is reset to its default values if the
   * dependency was not triggered when the form is submitted.
   */
  const CONDITIONAL_FIELDS_FIELD_EDIT_RESET_UNTRIGGERED = 3;

}

Members

Namesort descending Modifiers Type Description Overrides
ConditionalFieldsInterface::CONDITIONAL_FIELDS_DEPENDENCY_VALUES_AND constant Dependency is triggered if the dependee has all values.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_DEPENDENCY_VALUES_NOT constant Dependency is triggered if the dependee does not have any of the values.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_DEPENDENCY_VALUES_OR constant Dependency is triggered if the dependee has any of the values.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_DEPENDENCY_VALUES_REGEX constant Dependency is triggered if the dependee values match a regular expression.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_DEPENDENCY_VALUES_WIDGET constant Dependency is triggered if the dependee has a certain value.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_DEPENDENCY_VALUES_XOR constant Dependency is triggered if the dependee has only one of the values.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_FIELD_EDIT_HIDE_ORPHAN constant Field edit setting.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_FIELD_EDIT_HIDE_UNTRIGGERED_ORPHAN constant Field edit setting.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_FIELD_EDIT_RESET_UNTRIGGERED constant Field edit setting.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_FIELD_VIEW_DESCRIBE constant Field view setting.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_FIELD_VIEW_EVALUATE constant Field view setting.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_FIELD_VIEW_HIDE_ORPHAN constant Field view setting.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_FIELD_VIEW_HIDE_UNTRIGGERED_ORPHAN constant Field view setting.
ConditionalFieldsInterface::CONDITIONAL_FIELDS_FIELD_VIEW_HIGHLIGHT constant Field view setting.