DRUPAL_OPTIONAL

Same name in other branches
  1. 7.x modules/system/system.module \DRUPAL_OPTIONAL
  2. 9 core/modules/system/system.module \DRUPAL_OPTIONAL
  3. 8.9.x core/modules/system/system.module \DRUPAL_OPTIONAL
  4. 11.x core/modules/system/system.module \DRUPAL_OPTIONAL

Optional option on forms and settings.

22 uses of DRUPAL_OPTIONAL
CommentInterfaceTest::testCommentInterface in core/modules/comment/tests/src/Functional/CommentInterfaceTest.php
Tests the comment interface.
CommentItem::defaultFieldSettings in core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
Defines the field-level settings for this plugin.
CommentNonNodeTest::postComment in core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
Posts a comment.
CommentPagerTest::testTwoPagers in core/modules/comment/tests/src/Functional/CommentPagerTest.php
Confirms comment paging works correctly with two pagers.
CommentPreviewTest::testCommentEditPreviewSave in core/modules/comment/tests/src/Functional/CommentPreviewTest.php
Tests comment edit, preview, and save.

... See full list

File

core/modules/system/system.module, line 50

Code

const DRUPAL_OPTIONAL = 1;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.