Skip to content
Snippets Groups Projects
Commit 70e09045 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add new plugins

parent de22ed07
No related branches found
No related tags found
1 merge request!118Merging develop into main
Showing
with 598 additions and 0 deletions
---
title: "List: compare items"
tags:
- action
- eca_base
- eca action unknown
---
# List: compare items
Available since: unknown
Compares the items in two simple lists (contained in tokens), returning the array of results.
{!include/plugins/eca_base/action/eca_list_compare.md!}
## Fields
`Token containing the secondary list`
: Provide the name of the token that contains the secondary list in the comparison. Please provide the token name only, without brackets.
{!include/plugins/eca_base/action/eca_list_compare/secondary_list_token.md!}
`Array Function`
: Returns an array of items found by the <a href="https://www.php.net/manual/en/ref.array.php">Array Function</a> selected.
{!include/plugins/eca_base/action/eca_list_compare/method.md!}
`Name of result token`
: Provide the name of a new token where the resulting array should be stored. Please provide the token name only, without brackets.
{!include/plugins/eca_base/action/eca_list_compare/result_token_name.md!}
`Token containing the primary list`
: Provide the name of the token that contains the primary list in the comparison. Please provide the token name only, without brackets.
{!include/plugins/eca_base/action/eca_list_compare/list_token.md!}
---
title: "Order Item: Add Price Adjustment"
tags:
- action
- eca_commerce
- eca_commerce action 1.0.0
---
# Order Item: Add Price Adjustment
Available since: 1.0.0
{!include/plugins/eca_commerce/action/eca_commerce_add_adjustment.md!}
## Fields
`Method`
: The method to set an entity, like cleaning the old one, etc..
{!include/plugins/eca_commerce/action/eca_commerce_add_adjustment/method.md!}
`Type`
:
{!include/plugins/eca_commerce/action/eca_commerce_add_adjustment/type.md!}
`Locked`
: Note: Adjustments added from UI interactions need to be locked to persist after an order refresh.
{!include/plugins/eca_commerce/action/eca_commerce_add_adjustment/locked.md!}
`Label`
: <br/>This field supports tokens.
{!include/plugins/eca_commerce/action/eca_commerce_add_adjustment/label.md!}
`Amount`
: <br/>This field supports tokens.
{!include/plugins/eca_commerce/action/eca_commerce_add_adjustment/amount.md!}
`Currency`
: <br/>When using the "Defined by token" option, make sure there is a token with this name: <em>eca_commerce_add_adjustment_currency</em>
{!include/plugins/eca_commerce/action/eca_commerce_add_adjustment/currency.md!}
`Percentage`
: <br/>This field supports tokens.
{!include/plugins/eca_commerce/action/eca_commerce_add_adjustment/percentage.md!}
`Included in the base price`
:
{!include/plugins/eca_commerce/action/eca_commerce_add_adjustment/included.md!}
`Save entity`
: Saves the entity or not after setting the value.
{!include/plugins/eca_commerce/action/eca_commerce_add_adjustment/save_entity.md!}
---
title: "Config installer sync mode"
tags:
- condition
- eca_config
- eca condition 2.1.3
---
# Config installer sync mode
Available since: 2.1.3
Determine if config installer is in sync mode.
{!include/plugins/eca_config/condition/eca_config_installer_sync_mode.md!}
## Fields
`Negate the condition`
: Negates the condition. Makes TRUE to FALSE and vice versa.
{!include/plugins/eca_config/condition/eca_config_installer_sync_mode/negate.md!}
---
title: "ECA Helper: Set cookie"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Set cookie
Available since: unknown
Action cookie value for response.
{!include/plugins/eca_helper/action/eca_helper_cookie_set.md!}
## Fields
`Cookie name`
: The cookie name
{!include/plugins/eca_helper/action/eca_helper_cookie_set/name.md!}
`Cookie value`
: The cookie value.
{!include/plugins/eca_helper/action/eca_helper_cookie_set/value.md!}
`Expiration time`
: The cookie expiration time. Value can timespan or date string. Use 0 for never expired.
{!include/plugins/eca_helper/action/eca_helper_cookie_set/expire.md!}
`Cookie path`
: The cookie path.
{!include/plugins/eca_helper/action/eca_helper_cookie_set/path.md!}
---
title: "ECA Helper: Form add css class"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Form add css class
Available since: unknown
Add form css class.
{!include/plugins/eca_helper/action/eca_helper_form_add_class.md!}
## Fields
`Value`
: The element value.<br/>This field supports tokens.
{!include/plugins/eca_helper/action/eca_helper_form_add_class/value.md!}
---
title: "ECA Helper: Form attach library"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Form attach library
Available since: unknown
Attach library with to a form.
{!include/plugins/eca_helper/action/eca_helper_form_attach_library.md!}
## Fields
`Value`
: The element value.<br/>This field supports tokens.
{!include/plugins/eca_helper/action/eca_helper_form_attach_library/value.md!}
---
title: "ECA Helper: Header footer tag and script"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Header footer tag and script
Available since: unknown
Add header footer tag, script and style.
{!include/plugins/eca_helper/action/eca_helper_header_footer_tag.md!}
## Fields
`Position`
: Choose position insert tag.
{!include/plugins/eca_helper/action/eca_helper_header_footer_tag/position.md!}
`Tag type`
: Select tag type.
{!include/plugins/eca_helper/action/eca_helper_header_footer_tag/type.md!}
`Tag content`
: Input tag content.
{!include/plugins/eca_helper/action/eca_helper_header_footer_tag/content.md!}
---
title: "ECA Helper: Remove headers"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Remove headers
Available since: unknown
Action remove headers value for response.
{!include/plugins/eca_helper/action/eca_helper_header_remove.md!}
## Fields
`Headers`
: The headers to set. If you can also use YAML syntax by enabling it below.<br/>This field supports tokens.
{!include/plugins/eca_helper/action/eca_helper_header_remove/headers.md!}
`Interpret above value as YAML format`
: Nested data can be set using YAML format, for example <em>Content-Type: "text/html; charset=UTF-8"</em>. When using this format, this option needs to be enabled. When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: <em>Content-Type: "[content_type]"</em>
{!include/plugins/eca_helper/action/eca_helper_header_remove/use_yaml.md!}
---
title: "ECA Helper: Set headers"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Set headers
Available since: unknown
Action set headers value for response.
{!include/plugins/eca_helper/action/eca_helper_header_set.md!}
## Fields
`Headers`
: The headers to set. If you can also use YAML syntax by enabling it below.<br/>This field supports tokens.
{!include/plugins/eca_helper/action/eca_helper_header_set/headers.md!}
`Interpret above value as YAML format`
: Nested data can be set using YAML format, for example <em>Content-Type: "text/html; charset=UTF-8"</em>. When using this format, this option needs to be enabled. When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: <em>Content-Type: "[content_type]"</em>
{!include/plugins/eca_helper/action/eca_helper_header_set/use_yaml.md!}
---
title: "ECA Helper: Preprocess attach library"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Preprocess attach library
Available since: unknown
Attach library with preproces event.
{!include/plugins/eca_helper/action/eca_helper_preprocess_attach_library.md!}
## Fields
`Value`
: The element value.<br/>This field supports tokens.
{!include/plugins/eca_helper/action/eca_helper_preprocess_attach_library/value.md!}
---
title: "ECA Helper: Preprocess get value"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Preprocess get value
Available since: unknown
Get element value from preprocess event.
{!include/plugins/eca_helper/action/eca_helper_preprocess_get_value.md!}
## Fields
`Element key`
: The element key to get value for the preprocess. Example #title, #attributes.class<br/>This field supports tokens.
{!include/plugins/eca_helper/action/eca_helper_preprocess_get_value/key.md!}
`Name of response token`
: The response value will be loaded into this specified token. Please provide the token name only, without brackets.
{!include/plugins/eca_helper/action/eca_helper_preprocess_get_value/token_name.md!}
---
title: "ECA Helper: Preprocess remove item"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Preprocess remove item
Available since: unknown
Remove item by key with preprocess.
{!include/plugins/eca_helper/action/eca_helper_preprocess_remove_item.md!}
## Fields
`Element key`
: The element key to remove value for the form element. Example #title, #attributes.class<br/>This field supports tokens.
{!include/plugins/eca_helper/action/eca_helper_preprocess_remove_item/key.md!}
---
title: "ECA Helper: Preprocess add css class"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Preprocess add css class
Available since: unknown
Set css class with preproces event.
{!include/plugins/eca_helper/action/eca_helper_preprocess_set_class_value.md!}
## Fields
`Value`
: The element value.<br/>This field supports tokens.
{!include/plugins/eca_helper/action/eca_helper_preprocess_set_class_value/value.md!}
---
title: "ECA Helper: Preprocess set value"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Preprocess set value
Available since: unknown
Set Preprocess variables value.
{!include/plugins/eca_helper/action/eca_helper_preprocess_set_value.md!}
## Fields
`Element key`
: The element key to set value for the form element. Example #title, #attributes.class<br/>This field supports tokens.
{!include/plugins/eca_helper/action/eca_helper_preprocess_set_value/key.md!}
`Value`
: The element value.<br/>This field supports tokens.
{!include/plugins/eca_helper/action/eca_helper_preprocess_set_value/value.md!}
`Value in YAML`
: Value in the YAML format.
{!include/plugins/eca_helper/action/eca_helper_preprocess_set_value/value_yaml.md!}
`Set array value`
: Set or append data to array value.
{!include/plugins/eca_helper/action/eca_helper_preprocess_set_value/array.md!}
`Method`
: The method to set value when use Set array value.
{!include/plugins/eca_helper/action/eca_helper_preprocess_set_value/method.md!}
---
title: "ECA Helper: Quick Action"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Quick Action
Available since: unknown
Quick call custom action for ECA
{!include/plugins/eca_helper/action/eca_helper_quick_action.md!}
## Fields
`Action`
: Select the action
{!include/plugins/eca_helper/action/eca_helper_quick_action/action.md!}
`Arguments`
: The arguments of the action in the YAML format.
{!include/plugins/eca_helper/action/eca_helper_quick_action/args.md!}
`Name of result token`
: The result value after call the action will be loaded into this specified token. Please provide the token name only, without brackets.
{!include/plugins/eca_helper/action/eca_helper_quick_action/token_name.md!}
---
title: "ECA Helper: Get route name"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Get route name
Available since: unknown
Get current route name.
{!include/plugins/eca_helper/action/eca_helper_route_get.md!}
## Fields
`Name of token`
: The route name value will be loaded into this specified token. Please provide the token name only, without brackets.
{!include/plugins/eca_helper/action/eca_helper_route_get/token_name.md!}
---
title: "ECA Helper: Status Messages Alter"
tags:
- action
- eca_helper
- eca_helper action unknown
---
# ECA Helper: Status Messages Alter
Available since: unknown
Action allow alter status messages content.
{!include/plugins/eca_helper/action/eca_helper_status_messages_alter.md!}
## Fields
`Message value`
: Input the message value. Leave blank to use the remove the message.
{!include/plugins/eca_helper/action/eca_helper_status_messages_alter/value.md!}
---
title: "ECA Helper: Preprocess"
tags:
- event
- eca_helper
- eca_helper event unknown
---
# ECA Helper: Preprocess
Available since: unknown
!!! tip "Provided tokens"
| Token | Description |
| ----- | ----------- |
| `[event]` | The event. |
| `[event:machine_name]` | The machine name of the ECA event. |
| `[session_user]` | The user account that dispatched the event, regardless if ECA is processing models under a different account. This is only available if ECA is configured to always run under a specific account. |
{!include/plugins/eca_helper/event/eca_helper_preprocess_hook_preprocess.md!}
## Fields
This event provides tokens: &quot;[hook]&quot; the preprocess hook id to identify.
---
title: "ECA Helper: Status Messages"
tags:
- event
- eca_helper
- eca_helper event unknown
---
# ECA Helper: Status Messages
Available since: unknown
!!! tip "Provided tokens"
| Token | Description |
| ----- | ----------- |
| `[event]` | The status messages event. Support [event:type], [event:message]. |
| `[event:type]` | The message type. |
| `[event:message]` | The message content. |
| `[event]` | The event. |
| `[event:machine_name]` | The machine name of the ECA event. |
| `[session_user]` | The user account that dispatched the event, regardless if ECA is processing models under a different account. This is only available if ECA is configured to always run under a specific account. |
{!include/plugins/eca_helper/event/eca_helper_status_messages.md!}
---
title: "Recipe: apply"
tags:
- action
- eca_misc
- eca action 2.1.2
---
# Recipe: apply
Available since: 2.1.2
Applies a given recipe.
{!include/plugins/eca_misc/action/eca_apply_recipe.md!}
## Fields
`Recipe package name`
: The Composer package name of the recipe, that should be applied, e.g. "drupal/drupal_cms_privacy_basic"<br/>This field supports tokens.
{!include/plugins/eca_misc/action/eca_apply_recipe/recipe_package_name.md!}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment