Same name in other branches
  1. 8.x-2.x src/Plugin/FieldState/Required.php \Drupal\field_states_ui\Plugin\FieldState\Required

Controls field widget required state in relation to other fields dynamically.

Plugin annotation


@FieldState(
  id = "required",
  label = @Translation("Required"),
  description = @Translation("Dynamically make field required dependent on other field states/values.")
)

Hierarchy

Expanded class hierarchy of Required

1 string reference to 'Required'
field_states_ui.schema.yml in config/schema/field_states_ui.schema.yml
config/schema/field_states_ui.schema.yml

File

src/Plugin/FieldState/Required.php, line 16

Namespace

Drupal\field_states_ui\Plugin\FieldState
View source
class Required extends FieldStateBase {

}