Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. system.module

DRUPAL_OPTIONAL

Optional option on forms and settings.

5 uses of DRUPAL_OPTIONAL
CommentItem::defaultFieldSettings in core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
Defines the field-level settings for this plugin.
LinkField::alterFieldInstanceMigration in core/modules/link/src/Plugin/migrate/field/d7/LinkField.php
Apply any custom processing to the field instance migration.
LinkItem::defaultFieldSettings in core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
Defines the field-level settings for this plugin.
LinkItem::generateSampleValue in core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
Generates placeholder field values.
LinkWidget::formElement in core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
Returns the form for a single field widget.

File

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

Code

const DRUPAL_OPTIONAL = 1;
RSS feed
Powered by Drupal