Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-154: Allowed to define if the alternative text for image field is required (2.5) #348

Merged
merged 2 commits into from
Jun 25, 2021

Conversation

adamwojs
Copy link
Member

@adamwojs adamwojs self-assigned this Jun 16, 2021
@adamwojs adamwojs requested a review from a team June 17, 2021 11:42
@@ -38,13 +38,18 @@ public function buildForm(FormBuilderInterface $builder, array $options)
TextType::class,
[
'label' => /** @Desc("Alternative text") */ 'content.field_type.ezimage.alternative_text',
'required' => false,
'required' => $options['is_alternative_text_required'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it guaranteed that the key is present in the array?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As part of configureOptions, yes.

setDefaults implies that the field is required, at the same time providing a default value.

@piotrbisaga piotrbisaga self-assigned this Jun 21, 2021
Copy link

@piotrbisaga piotrbisaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA approved, checked on eZ Platform Enterprise 2.5 with .diff

@piotrbisaga piotrbisaga removed their assignment Jun 24, 2021
@adamwojs adamwojs merged commit 56b8070 into 2.5 Jun 25, 2021
@adamwojs adamwojs deleted the ibx_154_25 branch June 25, 2021 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

6 participants