Skip to content

Commit a4a8429

Browse files
committed
Merge branch '5.0' into IBX-10225
2 parents a176187 + 495e9c4 commit a4a8429

File tree

84 files changed

+334
-271
lines changed

Some content is hidden

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

84 files changed

+334
-271
lines changed

code_samples/ai_actions/src/Command/AddMissingAltTextCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private function getModifiedImages(): ContentList
150150
/** @phpstan-assert-if-true string $value->uri */
151151
private function shouldGenerateAltText(Value $value): bool
152152
{
153-
return $this->fieldTypeService->getFieldType('ezimage')->isEmptyValue($value) === false &&
153+
return $this->fieldTypeService->getFieldType('ibexa_image')->isEmptyValue($value) === false &&
154154
$value->isAlternativeTextEmpty() &&
155155
$value->uri !== null;
156156
}

code_samples/ai_actions/templates/themes/admin/admin/ui/fieldtype/edit/form_fields_binary_ai.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{% extends '@ibexadesign/ui/field_type/edit/ezbinaryfile.html.twig' %}
1+
{% extends '@ibexadesign/ui/field_type/edit/ibexa_binaryfile.html.twig' %}
22

3-
{% block ezbinaryfile_preview %}
3+
{% block ibexa_binaryfile_preview %}
44
{{ parent() }}
55

66
{% import '@ibexadesign/connector_ai/ui/ai_module/macros.html.twig' as ai_macros %}

code_samples/api/public_php_api/src/Command/CreateContentTypeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7070
'eng-GB' => $contentTypeIdentifier,
7171
];
7272

73-
$titleFieldCreateStruct = $this->contentTypeService->newFieldDefinitionCreateStruct('name', 'ezstring');
73+
$titleFieldCreateStruct = $this->contentTypeService->newFieldDefinitionCreateStruct('name', 'ibexa_string');
7474
$titleFieldCreateStruct->names = ['eng-GB' => 'Name'];
7575
$titleFieldCreateStruct->descriptions = ['eng-GB' => 'The name'];
7676
$titleFieldCreateStruct->fieldGroup = 'content';

code_samples/api/public_php_api/src/Command/ObjectStateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5151
$user = $this->userService->loadUserByLogin('admin');
5252
$this->permissionResolver->setCurrentUserReference($user);
5353

54-
$objectStateGroup = $this->objectStateService->loadObjectStateGroupByIdentifier('ez_lock');
54+
$objectStateGroup = $this->objectStateService->loadObjectStateGroupByIdentifier('ibexa_lock');
5555
$objectState = $this->objectStateService->loadObjectStateByIdentifier($objectStateGroup, 'locked');
5656

5757
$output->writeln($objectStateGroup->getName());

code_samples/api/public_php_api/src/Command/SegmentCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6262
$segments = $this->segmentationService->loadSegmentsAssignedToGroup($segmentGroup);
6363

6464
foreach ($segments as $segment) {
65-
$output->writeln('Segment ID: ' . $segment->id . ', name: ' . $segment->name);
65+
$output->writeln('Segment identifier: ' . $segment->getIdentifier() . ', name: ' . $segment->getName());
6666
}
6767

6868
$segment = $this->segmentationService->loadSegmentByIdentifier('segment_1');
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace App\Twig\Component;
4+
5+
use Ibexa\Contracts\TwigComponents\Attribute\AsTwigComponent;
6+
use Ibexa\Contracts\TwigComponents\ComponentInterface;
7+
8+
#[AsTwigComponent(
9+
group: 'admin-ui-dashboard-all-tab-groups',
10+
priority: 100
11+
)]
12+
final class MyComponent implements ComponentInterface
13+
{
14+
public function render(array $parameters = []): string
15+
{
16+
return 'Hello world!';
17+
}
18+
}

code_samples/back_office/images/config/services.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
public: true
55
arguments:
66
- '@ibexa.api.service.content'
7-
- '@ibexa.field_type.ezbinaryfile.io_service'
7+
- '@ibexa.field_type.ibexa_binaryfile.io_service'
88
- '@Ibexa\Core\Helper\TranslationHelper'
99

1010
App\Connector\Dam\Handler\WikimediaCommonsHandler:
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ezimageasset.dam_asset.page_url: Image page
2-
ezimageasset.dam_asset.author: Image author
3-
ezimageasset.dam_asset.license: License
4-
ezimageasset.dam_asset.license_url: License page
1+
ibexa_image_asset.dam_asset.page_url: Image page
2+
ibexa_image_asset.dam_asset.author: Image author
3+
ibexa_image_asset.dam_asset.license: License
4+
ibexa_image_asset.dam_asset.license_url: License page

code_samples/back_office/online_editor/config/packages/custom_buttons.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ibexa:
22
system:
33
admin_group:
44
fieldtypes:
5-
ezrichtext:
5+
ibexa_richtext:
66
custom_tags: [ezyoutube, eztwitter, ezfacebook]
77
toolbar:
88
group1:

code_samples/back_office/online_editor/config/packages/custom_classes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ibexa:
22
system:
33
admin_group:
44
fieldtypes:
5-
ezrichtext:
5+
ibexa_richtext:
66
classes:
77
paragraph:
88
choices: [regular, special, tip_box, warning_box]

0 commit comments

Comments
 (0)