* @since 5.3.0 */ class DefineShowFieldLayoutComponentInFormEvent extends Event { /** * @var FieldLayout The field layout being rendered. */ public FieldLayout $fieldLayout; /** * @var ElementInterface|null The element the form is being rendered for */ public ?ElementInterface $element = null; /** * @var bool Whether the field layout component should be shown in the form */ public bool $showInForm = true; }