You are here

interface WebformElementDisplayOnInterface in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElementDisplayOnInterface.php \Drupal\webform\Plugin\WebformElementDisplayOnInterface

Provides a 'display_on' interface hide/show element on form and/or view display.

Hierarchy

Expanded class hierarchy of WebformElementDisplayOnInterface

All classes that implement WebformElementDisplayOnInterface

8 files declare their use of WebformElementDisplayOnInterface
View.php in src/Plugin/WebformElement/View.php
WebformAttachmentBase.php in modules/webform_attachment/src/Plugin/WebformElement/WebformAttachmentBase.php
WebformComputedBase.php in src/Plugin/WebformElement/WebformComputedBase.php
WebformDisplayOnTrait.php in src/Plugin/WebformElement/WebformDisplayOnTrait.php
WebformHorizontalRule.php in src/Plugin/WebformElement/WebformHorizontalRule.php

... See full list

File

src/Plugin/WebformElementDisplayOnInterface.php, line 8

Namespace

Drupal\webform\Plugin
View source
interface WebformElementDisplayOnInterface {

  /**
   * Denotes display on both form and view displays.
   *
   * @var string
   */
  const DISPLAY_ON_BOTH = 'both';

  /**
   * Denotes display on form display only.
   *
   * @var string
   */
  const DISPLAY_ON_FORM = 'form';

  /**
   * Denotes display on view display only.
   *
   * @var string
   */
  const DISPLAY_ON_VIEW = 'view';

  /**
   * Denotes never display the element.
   *
   * @var string
   */
  const DISPLAY_ON_NONE = 'none';

}

Members

Namesort descending Modifiers Type Description Overrides
WebformElementDisplayOnInterface::DISPLAY_ON_BOTH constant Denotes display on both form and view displays.
WebformElementDisplayOnInterface::DISPLAY_ON_FORM constant Denotes display on form display only.
WebformElementDisplayOnInterface::DISPLAY_ON_NONE constant Denotes never display the element.
WebformElementDisplayOnInterface::DISPLAY_ON_VIEW constant Denotes display on view display only.