Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,19 @@
|`choices`| |Elements listed in the drop-down.|
|`preferred_choices`| | Elements listed at the top of the list with a separator.|
|`value`|-|The currently selected element. It is an object with a key `value`. |
|`multiple`| true</br>false|Boolean. To allow users to select multiple items.|
|`translation_domain`|true</br>false|Used for translating choices and placeholder.|
|`custom_form`|true</br>false|For custom form must be set to true.|
|`multiple`| true<br>false|Boolean. To allow users to select multiple items.|

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

</br> is replaced with <br> everywhere in this PR - </br> is not a valid tag and some HTML -> Markdown converters are failing to parse it.

Compare:

Current doc: https://doc.ibexa.co/en/5.0/administration/back_office/back_office_elements/add_dropdowns/index.md (truefalse in the output)
This PR: https://ez-systems-developer-documentation--3297.com.readthedocs.build/en/3297/administration/back_office/back_office_elements/add_dropdowns/index.md (true false in the output)

|`translation_domain`|true<br>false|Used for translating choices and placeholder.|
|`custom_form`|true<br>false|For custom form must be set to true.|
|`class`| |Additional classes for the element with `ibexa-dropdown` class.|
|`placeholder`| | Placeholder displayed when no option is selected.|
|`custom_init`|true</br>false|By default set to `false`. If set to `true`, requires manually initializing drop-down in JavaScript.|
|`is_disabled`|true</br>false|Disables drop-down.|
|`is_hidden`|true</br>false|Hides the whole widget.|
|`is_small`|true</br>false|Adjusts height of the widget (from 48px to 32px).|
|`is_ghost`|true</br>false|Changes layout of the widget, removes all borders and backgrounds (similar to buttons modifier).|
|`custom_init`|true<br>false|By default set to `false`. If set to `true`, requires manually initializing drop-down in JavaScript.|
|`is_disabled`|true<br>false|Disables drop-down.|
|`is_hidden`|true<br>false|Hides the whole widget.|
|`is_small`|true<br>false|Adjusts height of the widget (from 48px to 32px).|
|`is_ghost`|true<br>false|Changes layout of the widget, removes all borders and backgrounds (similar to buttons modifier).|
|`min_search_items`|number, default 5|Minimum number of options that have to be passed to show the search inside the drop-down.|
|`selected_item_label`|text|Allows setting constant label for widget. By default the visible label shows the currently selected options.|
|`has_select_all_toggler`|true</br>false|Allows showing a "Select all" option if the minimum number of items is reached.|
|`has_select_all_toggler`|true<br>false|Allows showing a "Select all" option if the minimum number of items is reached.|

Check notice on line 125 in docs/administration/back_office/back_office_elements/add_dropdowns.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/back_office_elements/add_dropdowns.md#L125

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/administration/back_office/back_office_elements/add_dropdowns.md", "range": {"start": {"line": 125, "column": 109}}}, "severity": "INFO"}
|`min_select_all_toggler_items`|number, default 5|Minimum number of items the dropdown must have for the "Select all" option to appear.|

![Drop-down expanded state](dropdown_expanded_state.png)
Expand Down
50 changes: 25 additions & 25 deletions docs/administration/back_office/browser/browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,42 +54,42 @@

There you can set the following properties:

|YML</br>React props|Values|Required|Definition|
|YML<br>React props|Values|Required|Definition|
|-------------------|------|--------|----------|
|multiple</br>`multiple`|true</br>false|no|The possibility to choose multiple locations.|
|multiple_items_limit</br>`multipleItemsLimit`|number|no|Maximum number of items with configuration `multiple: true`.|
|root_location_id</br>`rootLocationId`|number|no|UDW displays locations only below this content tree element.|
|starting_location_id</br>`startingLocationId`|number|no|This location is displayed as a starting location in UDW.|
|containers_only</br>`containersOnly`|true</br>false|no|When set to `true` only containers can be selected.|
|allowed_content_types</br>`allowedContentTypes`|null</br>[]</br>[`contentTypeIdentifier`]|yes|List of allowed content types:</br>`null` – all content types are allowed,</br>`[]` – empty table, no content types are allowed.|
|active_sort_clause</br>`activeSortClause`|DatePublished</br>ContentName|no|Sort Clause by which children in the content tree is sorted.|
|active_sort_order</br>`activeSortOrder`|ascending</br>descending|no|Sorting order of the children in the content tree.|
|active_tab</br>`activeTab`|browse</br>search</br>bookmarks|no|Starting tab in the UDW.|
|active_view</br>`activeView`|finder</br>grid</br>tree|no|Starting view in the UDW.|
|allow_redirects</br>`allowRedirects`|true</br>false|yes|Allows to redirect content from the UDW tab to another page, for example, to content edit page.|
|selected_locations</br>`selectedLocations`|[]</br>[locationId]|no|Location that is selected automatically.|
|allow_confirmation</br>`allowConfirmation`|true</br>false|yes|Shows confirmations buttons in the UDW. If set to false, it's not possible to confirm selection.|
|multiple<br>`multiple`|true<br>false|no|The possibility to choose multiple locations.|
|multiple_items_limit<br>`multipleItemsLimit`|number|no|Maximum number of items with configuration `multiple: true`.|
|root_location_id<br>`rootLocationId`|number|no|UDW displays locations only below this content tree element.|
|starting_location_id<br>`startingLocationId`|number|no|This location is displayed as a starting location in UDW.|

Check notice on line 62 in docs/administration/back_office/browser/browser.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/browser/browser.md#L62

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/administration/back_office/browser/browser.md", "range": {"start": {"line": 62, "column": 71}}}, "severity": "INFO"}
|containers_only<br>`containersOnly`|true<br>false|no|When set to `true` only containers can be selected.|

Check notice on line 63 in docs/administration/back_office/browser/browser.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/browser/browser.md#L63

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/administration/back_office/browser/browser.md", "range": {"start": {"line": 63, "column": 94}}}, "severity": "INFO"}
|allowed_content_types<br>`allowedContentTypes`|null<br>[]<br>[`contentTypeIdentifier`]|yes|List of allowed content types:<br>`null` – all content types are allowed,<br>`[]` – empty table, no content types are allowed.|

Check notice on line 64 in docs/administration/back_office/browser/browser.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/browser/browser.md#L64

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/administration/back_office/browser/browser.md", "range": {"start": {"line": 64, "column": 154}}}, "severity": "INFO"}

Check notice on line 64 in docs/administration/back_office/browser/browser.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/browser/browser.md#L64

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/administration/back_office/browser/browser.md", "range": {"start": {"line": 64, "column": 207}}}, "severity": "INFO"}
|active_sort_clause<br>`activeSortClause`|DatePublished<br>ContentName|no|Sort Clause by which children in the content tree is sorted.|

Check failure on line 65 in docs/administration/back_office/browser/browser.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/browser/browser.md#L65

[Ibexa.DomainTermCapitalization] Use 'Sort Clause(s)' instead of 'Sort Clause'
Raw output
{"message": "[Ibexa.DomainTermCapitalization] Use 'Sort Clause(s)' instead of 'Sort Clause'", "location": {"path": "docs/administration/back_office/browser/browser.md", "range": {"start": {"line": 65, "column": 75}}}, "severity": "ERROR"}

Check notice on line 65 in docs/administration/back_office/browser/browser.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/browser/browser.md#L65

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/administration/back_office/browser/browser.md", "range": {"start": {"line": 65, "column": 125}}}, "severity": "INFO"}
|active_sort_order<br>`activeSortOrder`|ascending<br>descending|no|Sorting order of the children in the content tree.|
|active_tab<br>`activeTab`|browse<br>search<br>bookmarks|no|Starting tab in the UDW.|
|active_view<br>`activeView`|finder<br>grid<br>tree|no|Starting view in the UDW.|
|allow_redirects<br>`allowRedirects`|true<br>false|yes|Allows to redirect content from the UDW tab to another page, for example, to content edit page.|
|selected_locations<br>`selectedLocations`|[]<br>[locationId]|no|Location that is selected automatically.|

Check notice on line 70 in docs/administration/back_office/browser/browser.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/browser/browser.md#L70

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/administration/back_office/browser/browser.md", "range": {"start": {"line": 70, "column": 80}}}, "severity": "INFO"}
|allow_confirmation<br>`allowConfirmation`|true<br>false|yes|Shows confirmations buttons in the UDW. If set to false, it's not possible to confirm selection.|

### Content on the Fly group

|YML</br>React props|Values|Required|Definition|
|YML<br>React props|Values|Required|Definition|
|-------------------|------|--------|----------|
|allowed_languages</br>`allowedLanguages`|null</br>[]</br>[languageCode]|yes|Languages available in Content on the Fly:</br>`null` - all,</br>`[]` - none.|
|allowed_locations</br>`allowedLocations`|null</br>[]</br>[locationId]|yes|Location under which creating content is allowed:</br>`null` - everywhere,</br>`[]` - nowhere.|
|preselected_language</br>`preselectedLanguage`|null</br>languageCode|yes|First language on the Content on the Fly language list:</br>null - language order defined in the system.|
|preselected_content_type</br>`preselectedContentType`|null</br>contentTypeIdentifier|yes|Content selected in Content on the Fly.|
|hidden</br>`hidden`|true</br>false|yes|Content on the Fly visibility.|
|auto_confirm_after_publish</br>`autoConfirmAfterPublish`|true</br>false|yes|If set to `true` UDW is automatically closed after publishing the content.|
|allowed_languages<br>`allowedLanguages`|null<br>[]<br>[languageCode]|yes|Languages available in Content on the Fly:<br>`null` - all,<br>`[]` - none.|
|allowed_locations<br>`allowedLocations`|null<br>[]<br>[locationId]|yes|Location under which creating content is allowed:<br>`null` - everywhere,<br>`[]` - nowhere.|

Check notice on line 78 in docs/administration/back_office/browser/browser.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/browser/browser.md#L78

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/administration/back_office/browser/browser.md", "range": {"start": {"line": 78, "column": 111}}}, "severity": "INFO"}
|preselected_language<br>`preselectedLanguage`|null<br>languageCode|yes|First language on the Content on the Fly language list:<br>null - language order defined in the system.|
|preselected_content_type<br>`preselectedContentType`|null<br>contentTypeIdentifier|yes|Content selected in Content on the Fly.|
|hidden<br>`hidden`|true<br>false|yes|Content on the Fly visibility.|
|auto_confirm_after_publish<br>`autoConfirmAfterPublish`|true<br>false|yes|If set to `true` UDW is automatically closed after publishing the content.|

### Tabs config group

General configuration for tabs, for example, browse, search, bookmarks.

|YML</br>React props|Values|Required|Definition|
|YML<br>React props|Values|Required|Definition|
|-------------------|------|--------|----------|
|items_per_page</br>`itemsPerPage`|number|yes|Number of items shown on one page.|
|priority</br>`priority`|number|yes|Priority of items shown in the tab list. Item with a highest value is displayed as first.|
|hidden</br>`hidden`|true</br>false|yes|Hides or reveals specific tabs.|
|items_per_page<br>`itemsPerPage`|number|yes|Number of items shown on one page.|
|priority<br>`priority`|number|yes|Priority of items shown in the tab list. Item with a highest value is displayed as first.|

Check notice on line 91 in docs/administration/back_office/browser/browser.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/browser/browser.md#L91

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/administration/back_office/browser/browser.md", "range": {"start": {"line": 91, "column": 103}}}, "severity": "INFO"}
|hidden<br>`hidden`|true<br>false|yes|Hides or reveals specific tabs.|

### Configuration available only through JS

Expand Down
22 changes: 11 additions & 11 deletions docs/api/event_reference/cart_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ page_type: reference

| Event | Dispatched by | Properties |
|---|---|---|
|`AddEntryEvent`|`CartService::addEntry`|`CartInterface $cart`</br>`EntryAddStruct $entryAddStruct`</br>`CartInterface $cartResult`|
|`BeforeAddEntryEvent`|`CartService::addEntry`|`CartInterface $cart`</br>`EntryAddStruct $entryAddStruct`</br>`?CartInterface $cartResult = null`|
|`BeforeCreateCartEvent`|`CartService::createCart`|`CartCreateStruct $cartCreateStruct`</br>`?CartInterface $cartResult = null`|
|`AddEntryEvent`|`CartService::addEntry`|`CartInterface $cart`<br>`EntryAddStruct $entryAddStruct`<br>`CartInterface $cartResult`|
|`BeforeAddEntryEvent`|`CartService::addEntry`|`CartInterface $cart`<br>`EntryAddStruct $entryAddStruct`<br>`?CartInterface $cartResult = null`|
|`BeforeCreateCartEvent`|`CartService::createCart`|`CartCreateStruct $cartCreateStruct`<br>`?CartInterface $cartResult = null`|
|`BeforeDeleteCartEvent`|`CartService::deleteCart`|`CartInterface $cart`|
|`BeforeEmptyCartEvent`|`CartService::emptyCart`|`CartInterface $cart`|
|`BeforeMergeCartsEvent`|`CartService::mergeCarts`|`CartInterface $targetCart`</br>`array $cartsToMerge`</br>`bool $deleteMergedCarts`|
|`BeforeRemoveEntryEvent`|`CartService::removeEntry`|`CartInterface $cart`</br>`EntryInterface $entry`</br>`?CartInterface $cartResult = null`|
|`BeforeUpdateCartMetadataEvent`|`CartService::updateCartMetadata`|`CartInterface $cart`</br>`CartMetadataUpdateStruct $cartUpdateStruct`</br>`?CartInterface $cartResult = null`|
|`BeforeUpdateEntryEvent`|`CartService::updateEntry`|`CartInterface $cart`</br>`EntryInterface $entry`</br>`EntryUpdateStruct $entryUpdateStruct`</br>`?CartInterface $cartResult = null`|
|`CreateCartEvent`|`CartService::createCart`|`CartCreateStruct $cartCreateStruct`</br>`CartInterface $cartResult`|
|`BeforeMergeCartsEvent`|`CartService::mergeCarts`|`CartInterface $targetCart`<br>`array $cartsToMerge`<br>`bool $deleteMergedCarts`|
|`BeforeRemoveEntryEvent`|`CartService::removeEntry`|`CartInterface $cart`<br>`EntryInterface $entry`<br>`?CartInterface $cartResult = null`|
|`BeforeUpdateCartMetadataEvent`|`CartService::updateCartMetadata`|`CartInterface $cart`<br>`CartMetadataUpdateStruct $cartUpdateStruct`<br>`?CartInterface $cartResult = null`|
|`BeforeUpdateEntryEvent`|`CartService::updateEntry`|`CartInterface $cart`<br>`EntryInterface $entry`<br>`EntryUpdateStruct $entryUpdateStruct`<br>`?CartInterface $cartResult = null`|
|`CreateCartEvent`|`CartService::createCart`|`CartCreateStruct $cartCreateStruct`<br>`CartInterface $cartResult`|
|`DeleteCartEvent`|`CartService::deleteCart`|`CartInterface $cart`|
|`EmptyCartEvent`|`CartService::emptyCart`|`CartInterface $cart`|
|`MergeCartsEvent`|`CartService::mergeCarts`|`CartInterface $cartResult`|
|`RemoveEntryEvent`|`CartService::removeEntry`|`CartInterface $cart`</br>`EntryInterface $entry`</br>`CartInterface $cartResult`|
|`UpdateCartMetadataEvent`|`CartService::updateCartMetadata`|`CartInterface $cart`</br>`CartMetadataUpdateStruct $cartUpdateStruct`</br>`CartInterface $cartResult`|
|`UpdateEntryEvent`|`CartService::updateEntry`|`CartInterface $cart`</br>`EntryInterface $entry`</br>`EntryUpdateStruct $entryUpdateStruct`</br>`CartInterface $cartResult`|
|`RemoveEntryEvent`|`CartService::removeEntry`|`CartInterface $cart`<br>`EntryInterface $entry`<br>`CartInterface $cartResult`|
|`UpdateCartMetadataEvent`|`CartService::updateCartMetadata`|`CartInterface $cart`<br>`CartMetadataUpdateStruct $cartUpdateStruct`<br>`CartInterface $cartResult`|
|`UpdateEntryEvent`|`CartService::updateEntry`|`CartInterface $cart`<br>`EntryInterface $entry`<br>`EntryUpdateStruct $entryUpdateStruct`<br>`CartInterface $cartResult`|
40 changes: 20 additions & 20 deletions docs/api/event_reference/content_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,38 @@ page_type: reference

| Event | Dispatched by | Properties |
|---|---|---|
|`BeforeCreateContentDraftEvent`|`ContentService::createContentDraft`|`ContentInfo $contentInfo`</br>`VersionInfo $versionInfo`</br>`User $creator`</br>`?Language $language`</br>`?Content $contentDraft`|
|`CreateContentDraftEvent`|`ContentService::createContentDraft`|`Content $contentDraft`</br>`ContentInfo $contentInfo`</br>`VersionInfo $versionInfo`</br>`User $creator`</br>`?Language $language`|
|`BeforeCreateContentEvent`|`ContentService::createContent`|`ContentCreateStruct $contentCreateStruct`</br>`array $locationCreateStructs`</br>`?Content $content`</br>`string[] or null $fieldIdentifiersToValidate`|
|`CreateContentEvent`|`ContentService::createContent`|`ContentCreateStruct $contentCreateStruct`</br>`array $locationCreateStructs`</br>`Content $content`</br>`string[] or null $fieldIdentifiersToValidate`|
|`BeforeUpdateContentEvent`|`ContentService::updateContent`|`VersionInfo $versionInfo`</br>`ContentUpdateStruct $contentUpdateStruct`</br>`?Content $content`</br>`string[] or null $fieldIdentifiersToValidate`|
|`UpdateContentEvent`|`ContentService::updateContent`|`Content $content`</br>`VersionInfo $versionInfo`</br>`ContentUpdateStruct $contentUpdateStruct`</br>`string[] or null $fieldIdentifiersToValidate`|
|`BeforeUpdateContentMetadataEvent`|`ContentService::updateContentMetadata`|`ContentInfo $contentInfo`</br>`ContentMetadataUpdateStruct $contentMetadataUpdateStruct`</br>`?Content $content`|
|`UpdateContentMetadataEvent`|`ContentService::updateContentMetadata`|`Content $content`</br>`ContentInfo $contentInfo`</br>`ContentMetadataUpdateStruct $contentMetadataUpdateStruct`|
|`BeforeCopyContentEvent`|`ContentService::copyContent`|`ContentInfo $contentInfo`</br>`LocationCreateStruct $destinationLocationCreateStruct`</br>`VersionInfo $versionInfo`</br>`?Content $content`|
|`CopyContentEvent`|`ContentService::copyContent`|`Content $content`</br>`ContentInfo $contentInfo`</br>`LocationCreateStruct $destinationLocationCreateStruct`</br>`VersionInfo $versionInfo`|
|`BeforePublishVersionEvent`|`ContentService::publishVersion`|`VersionInfo $versionInfo`</br>`?Content $content`</br>`string[] $translations`|
|`PublishVersionEvent`|`ContentService::publishVersion`|`Content $content`</br>`VersionInfo $versionInfo`</br>`string[] $translations`|
|`BeforeDeleteContentEvent`|`ContentService::deleteContent`|`ContentInfo $contentInfo`</br>`array or null $locations`|
|`DeleteContentEvent`|`ContentService::deleteContent`|`array $locations`</br>`ContentInfo $contentInfo`|
|`BeforeCreateContentDraftEvent`|`ContentService::createContentDraft`|`ContentInfo $contentInfo`<br>`VersionInfo $versionInfo`<br>`User $creator`<br>`?Language $language`<br>`?Content $contentDraft`|
|`CreateContentDraftEvent`|`ContentService::createContentDraft`|`Content $contentDraft`<br>`ContentInfo $contentInfo`<br>`VersionInfo $versionInfo`<br>`User $creator`<br>`?Language $language`|
|`BeforeCreateContentEvent`|`ContentService::createContent`|`ContentCreateStruct $contentCreateStruct`<br>`array $locationCreateStructs`<br>`?Content $content`<br>`string[] or null $fieldIdentifiersToValidate`|
|`CreateContentEvent`|`ContentService::createContent`|`ContentCreateStruct $contentCreateStruct`<br>`array $locationCreateStructs`<br>`Content $content`<br>`string[] or null $fieldIdentifiersToValidate`|
|`BeforeUpdateContentEvent`|`ContentService::updateContent`|`VersionInfo $versionInfo`<br>`ContentUpdateStruct $contentUpdateStruct`<br>`?Content $content`<br>`string[] or null $fieldIdentifiersToValidate`|
|`UpdateContentEvent`|`ContentService::updateContent`|`Content $content`<br>`VersionInfo $versionInfo`<br>`ContentUpdateStruct $contentUpdateStruct`<br>`string[] or null $fieldIdentifiersToValidate`|
|`BeforeUpdateContentMetadataEvent`|`ContentService::updateContentMetadata`|`ContentInfo $contentInfo`<br>`ContentMetadataUpdateStruct $contentMetadataUpdateStruct`<br>`?Content $content`|
|`UpdateContentMetadataEvent`|`ContentService::updateContentMetadata`|`Content $content`<br>`ContentInfo $contentInfo`<br>`ContentMetadataUpdateStruct $contentMetadataUpdateStruct`|
|`BeforeCopyContentEvent`|`ContentService::copyContent`|`ContentInfo $contentInfo`<br>`LocationCreateStruct $destinationLocationCreateStruct`<br>`VersionInfo $versionInfo`<br>`?Content $content`|
|`CopyContentEvent`|`ContentService::copyContent`|`Content $content`<br>`ContentInfo $contentInfo`<br>`LocationCreateStruct $destinationLocationCreateStruct`<br>`VersionInfo $versionInfo`|
|`BeforePublishVersionEvent`|`ContentService::publishVersion`|`VersionInfo $versionInfo`<br>`?Content $content`<br>`string[] $translations`|
|`PublishVersionEvent`|`ContentService::publishVersion`|`Content $content`<br>`VersionInfo $versionInfo`<br>`string[] $translations`|
|`BeforeDeleteContentEvent`|`ContentService::deleteContent`|`ContentInfo $contentInfo`<br>`array or null $locations`|
|`DeleteContentEvent`|`ContentService::deleteContent`|`array $locations`<br>`ContentInfo $contentInfo`|
|`BeforeDeleteVersionEvent`|`ContentService::deleteVersion`|`VersionInfo $versionInfo`|
|`DeleteVersionEvent`|`ContentService::deleteVersion`|`VersionInfo $versionInfo`|

## Relations

| Event | Dispatched by | Properties |
|---|---|---|
|`BeforeAddRelationEvent`|`ContentService::addRelation`|`VersionInfo $sourceVersion`</br>`ContentInfo $destinationContent`</br>`?Relation $relation`|
|`AddRelationEvent`|`ContentService::addRelation`|`Relation $relation`</br>`VersionInfo $sourceVersion`</br>`ContentInfo $destinationContent`|
|`BeforeDeleteRelationEvent`|`ContentService::deleteRelation`|`VersionInfo $sourceVersion`</br>`ContentInfo $destinationContent`|
|`DeleteRelationEvent`|`ContentService::deleteRelation`|`VersionInfo $sourceVersion`</br>`ContentInfo $destinationContent`|
|`BeforeAddRelationEvent`|`ContentService::addRelation`|`VersionInfo $sourceVersion`<br>`ContentInfo $destinationContent`<br>`?Relation $relation`|
|`AddRelationEvent`|`ContentService::addRelation`|`Relation $relation`<br>`VersionInfo $sourceVersion`<br>`ContentInfo $destinationContent`|
|`BeforeDeleteRelationEvent`|`ContentService::deleteRelation`|`VersionInfo $sourceVersion`<br>`ContentInfo $destinationContent`|
|`DeleteRelationEvent`|`ContentService::deleteRelation`|`VersionInfo $sourceVersion`<br>`ContentInfo $destinationContent`|

## Content translations

| Event | Dispatched by | Properties |
|---|---|---|
|`BeforeDeleteTranslationEvent`|`ContentService::deleteTranslation`|`ContentInfo $contentInfo`</br>`$languageCode`|
|`DeleteTranslationEvent`|`ContentService::deleteTranslation`|`ContentInfo $contentInfo`</br>`$languageCode`|
|`BeforeDeleteTranslationEvent`|`ContentService::deleteTranslation`|`ContentInfo $contentInfo`<br>`$languageCode`|
|`DeleteTranslationEvent`|`ContentService::deleteTranslation`|`ContentInfo $contentInfo`<br>`$languageCode`|

## Hiding and revealing

Expand Down
Loading
Loading