Skip to content

Commit 57980ca

Browse files
authored
IBX-9947: Rebranded field type identifiers (#89)
1 parent a786da7 commit 57980ca

File tree

55 files changed

+202
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+202
-198
lines changed

features/FieldTypeForm/checkbox_fieldtype_edit_form.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Feature: Checkbox field value edit form
44
I want the Checkbox field form to implement the FieldType's behaviour
55

66
Background:
7-
Given a content type with an ezboolean field definition
7+
Given a content type with an ibexa_boolean field definition
88

99
Scenario: The attributes of the field have a form representation
1010
When I view the edit form for this field
11-
Then the edit form should contain an identifiable widget for ezboolean field definition
11+
Then the edit form should contain an identifiable widget for ibexa_boolean field definition
1212
And it should contain a checkbox input field
1313

1414
Scenario: The input fields are flagged as required when the field definition is required
1515
Given the field definition is required
1616
When I view the edit form for this field
17-
Then the value input fields for ezboolean field should be flagged as required
17+
Then the value input fields for ibexa_boolean field should be flagged as required

features/FieldTypeForm/selection_fieldtype_edit_form.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Feature: Selection field value edit form
44
I want the Selection field form to implement the FieldType's behaviour
55

66
Background:
7-
Given a content type with an ezselection field definition
7+
Given a content type with an ibexa_selection field definition
88

99
Scenario: The attributes of the field have a form representation
1010
Given I view the edit form for this field
11-
Then the edit form should contain an identifiable widget for ezselection field definition
11+
Then the edit form should contain an identifiable widget for ibexa_selection field definition
1212
And it should contain a select field
1313

1414
Scenario: The options added to a field definition have a form representation

features/FieldTypeForm/textline_fieldtype_edit_form.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: TextLine field value edit form
22
In order to edit content of a TextLine fields
33
As an integrator
4-
I want the ezuser field form to implement the FieldType's behaviour
4+
I want the ibexa_user field form to implement the FieldType's behaviour
55

66
Background:
77
Given a content type with a textline field definition

features/FieldTypeForm/user_fieldtype_edit_form.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: User field value edit form
2-
In order to edit content of ezuser fields
2+
In order to edit content of ibexa_user fields
33
As an integrator
4-
I want the ezuser field form to implement the FieldType's behaviour
4+
I want the ibexa_user field form to implement the FieldType's behaviour
55

66
Background:
77
Given a content type with a user field definition

src/bundle/Resources/config/fieldtypes.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,51 +25,51 @@ services:
2525

2626
Ibexa\ContentForms\FieldType\Mapper\AuthorFormMapper:
2727
tags:
28-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezauthor }
28+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_author }
2929

3030
Ibexa\ContentForms\FieldType\Mapper\BinaryFileFormMapper:
3131
tags:
32-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezbinaryfile }
32+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_binaryfile }
3333

3434
Ibexa\ContentForms\FieldType\Mapper\CheckboxFormMapper:
3535
tags:
36-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezboolean }
36+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_boolean }
3737

3838
Ibexa\ContentForms\FieldType\Mapper\SelectionFormMapper:
3939
tags:
40-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezselection }
40+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_selection }
4141

4242
Ibexa\ContentForms\FieldType\Mapper\CountryFormMapper:
4343
tags:
44-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezcountry }
44+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_country }
4545

4646
Ibexa\ContentForms\FieldType\Mapper\DateFormMapper:
4747
tags:
48-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezdate }
48+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_date }
4949

5050
Ibexa\ContentForms\FieldType\Mapper\DateTimeFormMapper:
5151
tags:
52-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezdatetime }
52+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_datetime }
5353

5454
Ibexa\ContentForms\FieldType\Mapper\FloatFormMapper:
5555
tags:
56-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezfloat }
56+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_float }
5757

5858
Ibexa\ContentForms\FieldType\Mapper\ImageFormMapper:
5959
tags:
60-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezimage }
60+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_image }
6161

6262
Ibexa\ContentForms\FieldType\Mapper\IntegerFormMapper:
6363
tags:
64-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezinteger }
64+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_integer }
6565

6666
Ibexa\ContentForms\FieldType\Mapper\ISBNFormMapper:
6767
tags:
68-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezisbn }
68+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_isbn }
6969

7070
Ibexa\ContentForms\FieldType\Mapper\MediaFormMapper:
7171
tags:
72-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezmedia }
72+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_media }
7373

7474
Ibexa\ContentForms\FieldType\Mapper\AbstractRelationFormMapper:
7575
abstract: true
@@ -82,57 +82,57 @@ services:
8282
autoconfigure: false
8383
public: false
8484
tags:
85-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezobjectrelation }
85+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_object_relation }
8686

8787
Ibexa\ContentForms\FieldType\Mapper\RelationListFormMapper:
8888
parent: Ibexa\ContentForms\FieldType\Mapper\AbstractRelationFormMapper
8989
autowire: true
9090
autoconfigure: false
9191
public: false
9292
tags:
93-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezobjectrelationlist }
93+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_object_relation_list }
9494

9595
Ibexa\ContentForms\FieldType\Mapper\TextLineFormMapper:
9696
tags:
97-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezstring }
97+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_string }
9898

9999
Ibexa\ContentForms\FieldType\Mapper\TextBlockFormMapper:
100100
tags:
101-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: eztext }
101+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_text }
102102

103103
Ibexa\ContentForms\FieldType\Mapper\TimeFormMapper:
104104
tags:
105-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: eztime }
105+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_time }
106106

107107
Ibexa\ContentForms\FieldType\Mapper\FormTypeBasedFieldValueFormMapper:
108108
abstract: true
109109

110110
Ibexa\ContentForms\FieldType\Mapper\UserAccountFieldValueFormMapper:
111111
tags:
112-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezuser }
112+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_user }
113113

114114
Ibexa\ContentForms\FieldType\Mapper\UrlFormMapper:
115115
tags:
116-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezurl }
116+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_url }
117117

118118
Ibexa\ContentForms\FieldType\Mapper\MapLocationFormMapper:
119119
tags:
120-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezgmaplocation }
120+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_gmap_location }
121121

122122
Ibexa\ContentForms\FieldType\Mapper\KeywordFormMapper:
123123
tags:
124-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezkeyword }
124+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_keyword }
125125

126-
ibexa.content_forms.field_type.form_mapper.ezemail:
126+
ibexa.content_forms.field_type.form_mapper.ibexa_email:
127127
parent: Ibexa\ContentForms\FieldType\Mapper\FormTypeBasedFieldValueFormMapper
128128
autowire: true
129129
autoconfigure: false
130130
public: false
131131
tags:
132-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezemail }
132+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_email }
133133
calls:
134134
- [setFormType, ['Symfony\Component\Form\Extension\Core\Type\EmailType']]
135135

136136
Ibexa\ContentForms\FieldType\Mapper\ImageAssetFormMapper:
137137
tags:
138-
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezimageasset }
138+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ibexa_image_asset }

src/bundle/Resources/config/services.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ parameters:
88
ibexa.content_forms.user_content_type_identifier: "user"
99

1010
services:
11-
Ibexa\ContentForms\FieldType\FieldTypeFormMapperDispatcher: ~
11+
Ibexa\ContentForms\FieldType\FieldTypeFormMapperDispatcher:
12+
arguments:
13+
$fieldTypeAliasResolver: '@Ibexa\Core\FieldType\FieldTypeAliasResolverInterface'
1214

1315
Ibexa\ContentForms\Form\Type\Content\ContentFieldType:
1416
arguments: ['@Ibexa\ContentForms\FieldType\FieldTypeFormMapperDispatcher']

src/bundle/Resources/translations/ibexa_content_forms_fieldtype.en.xliff

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,100 +16,100 @@
1616
<target state="new">Remove</target>
1717
<note>key: content.field_type.binary_base.remove</note>
1818
</trans-unit>
19-
<trans-unit id="db5d6f82fe5ba6f40d1d159dca89c659c76aad06" resname="content.field_type.ezauthor.email">
19+
<trans-unit id="db5d6f82fe5ba6f40d1d159dca89c659c76aad06" resname="content.field_type.ibexa_author.email">
2020
<source>Email</source>
2121
<target state="new">Email</target>
22-
<note>key: content.field_type.ezauthor.email</note>
22+
<note>key: content.field_type.ibexa_author.email</note>
2323
</trans-unit>
24-
<trans-unit id="05fe48833d61c38f4c532c34c4b6fdad323e1fe1" resname="content.field_type.ezauthor.name">
24+
<trans-unit id="05fe48833d61c38f4c532c34c4b6fdad323e1fe1" resname="content.field_type.ibexa_author.name">
2525
<source>Name</source>
2626
<target state="new">Name</target>
27-
<note>key: content.field_type.ezauthor.name</note>
27+
<note>key: content.field_type.ibexa_author.name</note>
2828
</trans-unit>
29-
<trans-unit id="79843ce578133501bb420c52cd410a113dcfaefb" resname="content.field_type.ezgmaplocation.address">
29+
<trans-unit id="79843ce578133501bb420c52cd410a113dcfaefb" resname="content.field_type.ibexa_gmap_location.address">
3030
<source>Address</source>
3131
<target state="new">Address</target>
32-
<note>key: content.field_type.ezgmaplocation.address</note>
32+
<note>key: content.field_type.ibexa_gmap_location.address</note>
3333
</trans-unit>
34-
<trans-unit id="2fcb1cae76dae0c5ddda6446822bf2d656e84601" resname="content.field_type.ezgmaplocation.latitude">
34+
<trans-unit id="2fcb1cae76dae0c5ddda6446822bf2d656e84601" resname="content.field_type.ibexa_gmap_location.latitude">
3535
<source>Latitude</source>
3636
<target state="new">Latitude</target>
37-
<note>key: content.field_type.ezgmaplocation.latitude</note>
37+
<note>key: content.field_type.ibexa_gmap_location.latitude</note>
3838
</trans-unit>
39-
<trans-unit id="f598e2bedb749c004e232b9c3f0cffbc08f9c491" resname="content.field_type.ezgmaplocation.longitude">
39+
<trans-unit id="f598e2bedb749c004e232b9c3f0cffbc08f9c491" resname="content.field_type.ibexa_gmap_location.longitude">
4040
<source>Longitude</source>
4141
<target state="new">Longitude</target>
42-
<note>key: content.field_type.ezgmaplocation.longitude</note>
42+
<note>key: content.field_type.ibexa_gmap_location.longitude</note>
4343
</trans-unit>
44-
<trans-unit id="aa904d94a0f6df2084d669e82dac178189509aab" resname="content.field_type.ezimage.alternative_text">
44+
<trans-unit id="aa904d94a0f6df2084d669e82dac178189509aab" resname="content.field_type.ibexa_image.alternative_text">
4545
<source>Alternative text</source>
4646
<target state="new">Alternative text</target>
47-
<note>key: content.field_type.ezimage.alternative_text</note>
47+
<note>key: content.field_type.ibexa_image.alternative_text</note>
4848
</trans-unit>
49-
<trans-unit id="5da12c12b4df6790c55fb4d0b11f72fa621b0d1f" resname="content.field_type.ezimageasset.alternative_text">
49+
<trans-unit id="5da12c12b4df6790c55fb4d0b11f72fa621b0d1f" resname="content.field_type.ibexa_image_asset.alternative_text">
5050
<source>Alternative text</source>
5151
<target state="new">Alternative text</target>
52-
<note>key: content.field_type.ezimageasset.alternative_text</note>
52+
<note>key: content.field_type.ibexa_image_asset.alternative_text</note>
5353
</trans-unit>
54-
<trans-unit id="7162d22b1be8aaa634e57fa94cc2664026be4390" resname="content.field_type.ezmedia.autoplay">
54+
<trans-unit id="7162d22b1be8aaa634e57fa94cc2664026be4390" resname="content.field_type.ibexa_media.autoplay">
5555
<source>Autoplay</source>
5656
<target state="new">Autoplay</target>
57-
<note>key: content.field_type.ezmedia.autoplay</note>
57+
<note>key: content.field_type.ibexa_media.autoplay</note>
5858
</trans-unit>
59-
<trans-unit id="f0176a5e197c6c207e09affb1a027db2ab48a506" resname="content.field_type.ezmedia.display_controls">
59+
<trans-unit id="f0176a5e197c6c207e09affb1a027db2ab48a506" resname="content.field_type.ibexa_media.display_controls">
6060
<source>Display controls</source>
6161
<target state="new">Display controls</target>
62-
<note>key: content.field_type.ezmedia.display_controls</note>
62+
<note>key: content.field_type.ibexa_media.display_controls</note>
6363
</trans-unit>
64-
<trans-unit id="eb3b924b6a2d94344ea5e1e51636ef5b92a7a57a" resname="content.field_type.ezmedia.height">
64+
<trans-unit id="eb3b924b6a2d94344ea5e1e51636ef5b92a7a57a" resname="content.field_type.ibexa_media.height">
6565
<source>Height</source>
6666
<target state="new">Height</target>
67-
<note>key: content.field_type.ezmedia.height</note>
67+
<note>key: content.field_type.ibexa_media.height</note>
6868
</trans-unit>
69-
<trans-unit id="48e4eb02443e58b9ff501ca03bdc4008e842eba4" resname="content.field_type.ezmedia.loop">
69+
<trans-unit id="48e4eb02443e58b9ff501ca03bdc4008e842eba4" resname="content.field_type.ibexa_media.loop">
7070
<source>Loop</source>
7171
<target state="new">Loop</target>
72-
<note>key: content.field_type.ezmedia.loop</note>
72+
<note>key: content.field_type.ibexa_media.loop</note>
7373
</trans-unit>
74-
<trans-unit id="e5940ee516f3edb1d09e7ac4eed4fe7a28d3cacd" resname="content.field_type.ezmedia.width">
74+
<trans-unit id="e5940ee516f3edb1d09e7ac4eed4fe7a28d3cacd" resname="content.field_type.ibexa_media.width">
7575
<source>Width</source>
7676
<target state="new">Width</target>
77-
<note>key: content.field_type.ezmedia.width</note>
77+
<note>key: content.field_type.ibexa_media.width</note>
7878
</trans-unit>
79-
<trans-unit id="25850f96dbb0457a35063e29e92a26cbba2de07d" resname="content.field_type.ezurl.link">
79+
<trans-unit id="25850f96dbb0457a35063e29e92a26cbba2de07d" resname="content.field_type.ibexa_url.link">
8080
<source>URL</source>
8181
<target state="new">URL</target>
82-
<note>key: content.field_type.ezurl.link</note>
82+
<note>key: content.field_type.ibexa_url.link</note>
8383
</trans-unit>
84-
<trans-unit id="e6ca454559e2a762b64c43847db1e227b3077540" resname="content.field_type.ezurl.text">
84+
<trans-unit id="e6ca454559e2a762b64c43847db1e227b3077540" resname="content.field_type.ibexa_url.text">
8585
<source>Text</source>
8686
<target state="new">Text</target>
87-
<note>key: content.field_type.ezurl.text</note>
87+
<note>key: content.field_type.ibexa_url.text</note>
8888
</trans-unit>
89-
<trans-unit id="7a3eb3ea13db1c9d6a0bd64c7d249a45e7b83b52" resname="content.field_type.ezuser.email">
89+
<trans-unit id="7a3eb3ea13db1c9d6a0bd64c7d249a45e7b83b52" resname="content.field_type.ibexa_user.email">
9090
<source>Email</source>
9191
<target state="new">Email</target>
92-
<note>key: content.field_type.ezuser.email</note>
92+
<note>key: content.field_type.ibexa_user.email</note>
9393
</trans-unit>
94-
<trans-unit id="8ac4ec40153c80fd39d2051802e30ebffb6f1fe1" resname="content.field_type.ezuser.enabled">
94+
<trans-unit id="8ac4ec40153c80fd39d2051802e30ebffb6f1fe1" resname="content.field_type.ibexa_user.enabled">
9595
<source>Enabled</source>
9696
<target state="new">Enabled</target>
97-
<note>key: content.field_type.ezuser.enabled</note>
97+
<note>key: content.field_type.ibexa_user.enabled</note>
9898
</trans-unit>
99-
<trans-unit id="4c65e5d17516c19e311161e374bbd39f053b5e6b" resname="content.field_type.ezuser.password">
99+
<trans-unit id="4c65e5d17516c19e311161e374bbd39f053b5e6b" resname="content.field_type.ibexa_user.password">
100100
<source>Password</source>
101101
<target state="new">Password</target>
102-
<note>key: content.field_type.ezuser.password</note>
102+
<note>key: content.field_type.ibexa_user.password</note>
103103
</trans-unit>
104-
<trans-unit id="d2fe533f4032896195d524038c3abeb2209adece" resname="content.field_type.ezuser.password_confirm">
104+
<trans-unit id="d2fe533f4032896195d524038c3abeb2209adece" resname="content.field_type.ibexa_user.password_confirm">
105105
<source>Confirm password</source>
106106
<target state="new">Confirm password</target>
107-
<note>key: content.field_type.ezuser.password_confirm</note>
107+
<note>key: content.field_type.ibexa_user.password_confirm</note>
108108
</trans-unit>
109-
<trans-unit id="d1f5c5fcee7eb206e496dd5073b0f95427431a1c" resname="content.field_type.ezuser.username">
109+
<trans-unit id="d1f5c5fcee7eb206e496dd5073b0f95427431a1c" resname="content.field_type.ibexa_user.username">
110110
<source>Username</source>
111111
<target state="new">Username</target>
112-
<note>key: content.field_type.ezuser.username</note>
112+
<note>key: content.field_type.ibexa_user.username</note>
113113
</trans-unit>
114114
<trans-unit id="1d777459cd2f508bdb4676d48eaeee62e11d3009" resname="content_forms.relation.location_type">
115115
<source>Select Starting Location</source>

src/lib/Behat/Context/ContentEditContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public function iAmOnTheViewOfTheContentThatWasPublished(): void
5757
throw new \Exception('No created content name set');
5858
}
5959

60-
$this->assertElementOnPage('span.ezstring-field');
61-
$this->assertElementContainsText('span.ezstring-field', $this->createdContentName);
60+
$this->assertElementOnPage('span.ibexa_string-field');
61+
$this->assertElementContainsText('span.ibexa_string-field', $this->createdContentName);
6262
}
6363

6464
/**
@@ -169,7 +169,7 @@ public function thereIsAContentTypeWithAnyKindOfConstraintsOnAFieldDefinition():
169169
new FieldDefinitionCreateStruct(
170170
[
171171
'identifier' => self::$constrainedFieldIdentifier,
172-
'fieldTypeIdentifier' => 'ezstring',
172+
'fieldTypeIdentifier' => 'ibexa_string',
173173
'names' => ['eng-GB' => 'Field'],
174174
'validatorConfiguration' => [
175175
'StringLengthValidator' => ['minStringLength' => 5, 'maxStringLength' => 10],

0 commit comments

Comments
 (0)