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;