Skip to content

Commit 02b34ef

Browse files
committed
Ignore existing samples
1 parent c9bdf80 commit 02b34ef

338 files changed

Lines changed: 506 additions & 506 deletions

File tree

Some content is hidden

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

docs/administration/back_office/back_office_elements/extending_thumbnails.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This mechanism can be modified to fit your site needs, so you can decide from wh
4141
First, create base strategy for returning custom thumbnails from a static file.
4242
Create `StaticStrategy.php` in `src/Strategy`.
4343

44-
```php
44+
``` php
4545
[[= include_code('code_samples/back_office/thumbnails/src/Strategy/StaticThumbnailStrategy.php') =]]
4646
```
4747

@@ -74,7 +74,7 @@ It enables you to add a thumbnail URL in the text field.
7474

7575
Add `FieldValueUrl.php` in `src/Thumbnails`.
7676

77-
```php
77+
``` php {skip-validation}
7878
<?php
7979

8080
declare(strict_types=1);

docs/administration/back_office/back_office_elements/formatting_date_and_time.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can format date and time by using the following services:
1919

2020
To use them, create an `src/Service/MyService.php` file containing:
2121

22-
``` php
22+
``` php {skip-validation}
2323
<?php
2424

2525
namespace App\Service;

docs/administration/back_office/back_office_menus/back_office_menus.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The following method adds a new menu section under **Content**, and under it, a
8585

8686
You can also pass parameters to templates used to render menu items with `template_parameters`:
8787

88-
``` php
88+
``` php {skip-validation}
8989
$menu->addChild(
9090
'all_content_list',
9191
[
@@ -105,7 +105,7 @@ You can then use the variable `custom_parameter` in `templates/themes/admin/list
105105

106106
To have translatable labels, use `translation.key` from the `messages` domain:
107107

108-
``` php
108+
``` php {skip-validation}
109109
$menu->addChild(
110110
'all_content_list',
111111
[

docs/administration/back_office/back_office_tabs/back_office_tabs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A custom tab can extend one of the following classes:
1818
- [`AbstractControllerBasedTab`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-AdminUi-Tab-AbstractControllerBasedTab.html) - embeds the results of a controller action in the tab
1919
- [`AbstractRouteBasedTab`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-AdminUi-Tab-AbstractRouteBasedTab.html) - embeds the results of the selected route, passing applicable parameters
2020

21-
``` php
21+
``` php {skip-validation}
2222
//...
2323
[[= include_file('code_samples/back_office/dashboard/article_tab/src/Tab/Dashboard/Everyone/EveryoneArticleTab.php', 16, 18) =]]
2424
//...

docs/administration/back_office/browser/browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ If an event listener catches additional parameters passed with context, it uses
146146

147147
In the example below, the `johndoe` parameter enables the user to choose multiple items from a **Browser window** by changing `multiple: false` from `my_custom_udw` configuration to `multiple: true`.
148148

149-
```php hl_lines="29 30 31"
149+
``` php {skip-validation} hl_lines="29 30 31"
150150
class JohnDoeCanSelectMore implements EventSubscriberInterface
151151
{
152152
private const CONFIGURATION_NAME = 'my_custom_udw';

docs/administration/back_office/customize_calendar.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Here, you define a new class for your event based on `Ibexa\Contracts\Calendar\E
4747

4848
Next, create `src/Calendar/Holidays/EventType.php`:
4949

50-
```php hl_lines="20-23"
50+
``` php hl_lines="20-23"
5151
[[= include_code('code_samples/back_office/calendar/src/Calendar/Holidays/EventType.php') =]]
5252
```
5353

@@ -68,7 +68,7 @@ An event source must implement `Ibexa\Contracts\Calendar\EventSource\EventSource
6868
One such built-in implementation is `InMemoryEventSource`.
6969
To add an in-memory collection as an event source, create `src/Calendar/Holidays/EventSourceFactory.php`:
7070

71-
```php
71+
``` php
7272
[[= include_file('code_samples/back_office/calendar/src/Calendar/Holidays/EventSourceFactory.php', 0, 20) =]]
7373
[[= include_file('code_samples/back_office/calendar/src/Calendar/Holidays/EventSourceFactory.php', 26, 36) =]]
7474

@@ -80,7 +80,7 @@ To add an in-memory collection as an event source, create `src/Calendar/Holidays
8080

8181
For example:
8282

83-
``` php
83+
``` php {skip-validation}
8484
$collection = new EventCollection([
8585
$this->createEvent("Event 1", new DateTime("2024-01-01")),
8686
$this->createEvent("Event 2", new DateTime("2024-01-02")),

docs/administration/back_office/customize_product_tour.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ibexa:
4040
4141
Then, create a subscriber that modifies the scenario.
4242
43-
```php hl_lines="32-34 36-38 40-42 44-55"
43+
``` php hl_lines="32-34 36-38 40-42 44-55"
4444
[[= include_code('code_samples/back_office/product_tour/src/EventSubscriber/NotificationScenarioSubscriber.php') =]]
4545
```
4646

docs/administration/back_office/notifications.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ There are four types of notifications: `info`, `success`, `warning` and `error`.
2525

2626
To send a notification from PHP, inject the `TranslatableNotificationHandlerInterface` into your class.
2727

28-
``` php
28+
``` php {skip-validation}
2929
$this->notificationHandler->info(
3030
/** @Desc("Notification text") */
3131
'example.notification.text',
@@ -90,7 +90,7 @@ You can send notifications to users which are displayed in the user menu.
9090
To create a new notification you can use the [`NotificationService::createNotification(CreateStruct $createStruct)` method](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-NotificationService.html#method_createNotification)
9191
like in the example below:
9292

93-
```php
93+
``` php
9494
[[= include_code('code_samples/back_office/notifications/src/EventListener/ContentPublishEventListener.php') =]]
9595
```
9696

@@ -102,7 +102,7 @@ To display a user notification, write a renderer and tag it as a service.
102102

103103
The example below presents a renderer that uses Twig to render a view:
104104

105-
```php
105+
``` php
106106
[[= include_code('code_samples/back_office/notifications/src/Notification/MyRenderer.php') =]]
107107
```
108108

@@ -126,7 +126,7 @@ To display a list of notifications, expand the above renderer.
126126

127127
The example below presents a modified renderer that uses Twig to render a list view:
128128

129-
```php
129+
``` php
130130
[[= include_code('code_samples/back_office/notifications/src/Notification/ListRenderer.php') =]]
131131
```
132132

docs/administration/configuration/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ parameters:
7272
an_array: [apple, banana, pear]
7373
```
7474
75-
``` php
75+
``` php {skip-validation}
7676
// Usage inside a controller
7777
$myParameter = $this->container->getParameter( 'myapp.parameter.name' );
7878
```

docs/administration/configuration/dynamic_configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ parameters:
2929
3030
Inside a controller, in `site_group` SiteAccess, you can use the parameters in the following way (the same applies for `hasParameter()`):
3131

32-
``` php
32+
``` php {skip-validation}
3333
$configResolver = $this->getConfigResolver();
3434
 
3535
// ibexa.site_access.config is the default namespace, so no need to specify it
@@ -77,7 +77,7 @@ For more information about dependency injection, see [Service container](php_api
7777
Don't store the retrieved config value unless you know what you're doing.
7878
SiteAccess can change during code execution, which means you might work on the wrong value.
7979

80-
``` php
80+
``` php {skip-validation}
8181
namespace App;
8282
8383
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;

0 commit comments

Comments
 (0)