All Questions
26 questions
2
votes
1
answer
616
views
I can't see custom action
I am trying to create a custom action for bulk operations on commerce orders.
I am using the following code.
mymodule/src/Plugin/Action/DeleteOrderAndApps.php
namespace Drupal\mymodule\Plugin\Action;
...
0
votes
1
answer
30
views
Add a second RulesAction to a custom module
I created a custom module containing one Rules Action that works perfectly. I tried adding a second by creating a second php file in the MODULE/src/Plugin/RulesAction folder, with the names and class ...
0
votes
0
answers
24
views
Delaying a Rules action until previous actions are complete
I'm making an HTTP request in an action which obviously takes some time. I want to use the response of that request in another action, but every time I get an error since the request hasn't completed ...
1
vote
1
answer
56
views
Memory error when updating user field with Rules
I'm using the Rules module to update my user email signatures.
The rule get's triggered whenever an account is updated and performs a simple custom action.
This is the action, all it does is save a ...
0
votes
0
answers
38
views
How to execute migration on selected nodes thru core bulk action plugin?
I'm trying to execute migration to create a copy of selected content nodes to other content type. Migration source (plugin: content_entity) is content_type_a and destination (plugin: entity) is ...
3
votes
1
answer
1k
views
custom action plugin with ConfigurationForm
I am trying to create a custom action with Configuration Form Field . I am able to create Action and it is being displayed on content page ( /admin/content ) , but I am not able to find the path to ...
1
vote
1
answer
1k
views
How to get the selected items (with VBO) in the buildConfigurationForm of a custom Action
I have made a custom action which have a configuration form:
class MyAction extends ConfigurableActionBase
Thus, I have the opportunity to create a form that allows the user to set some options. ...
3
votes
1
answer
691
views
How can I trigger a Drupal Core action without writing any PHP code?
On my D8 site I have configured an action of type "Send email" using the Drupal Core "Actions" module (module can be installed under "Administration > Extend"). I want this Drupal Core action to ...
3
votes
1
answer
761
views
Execute actions (actions module not rules module) programatically
How can an action from the actions module be executed programatically? In D7 there was actions_do() but in D8 actions are plugins or configuration entities according to https://www.drupal.org/node/...
2
votes
1
answer
162
views
View field with link to excecute action plugin
How can one add a field in views with a link to a custom Action plugin?
With bulk operations it's possible to create a checkbox to perform an action to a set of results. My actions have an access ...
0
votes
1
answer
95
views
Actions module - redirect to url
I'm trying to learn about the functionality of this module, however I don't understand quite right what the Redirect to URL option means/does. Any hint in the right direction will be much appreciated.
2
votes
2
answers
2k
views
Trigger an action programmatically
I have defined an action and want to trigger it from a hook.
We do not want to use the Rules module, because it is still buggy with Drupal 8. So, we cannot use rules_invoke_component().
What is the ...
0
votes
0
answers
130
views
How to use tokens with actions module?
I'm trying to use core Actions module to send email after new comment has been inserted. I'm doing it with Action::load('<my_mail_action>')->execute([$entity]); executed with function ...
1
vote
0
answers
169
views
How to set an action to unpublish content containing some particular keywords?
I just enabled action module provided by Drupal core. There in configuration, I have chosen CREATE AN ADVANCED ACTION, and then choose "unpublish content containing keywords". I have entered keywords ...
1
vote
1
answer
520
views
How do I code to take action when a VBO (bulk action) is finished?
I've recently coded a few Drupal\x\Plugin\Action classes that respond nicely to my VBO (now bulk actions?) in Drupal 8. Now I'd like to implement a hook, or whatever is required, to take action when ...
2
votes
3
answers
3k
views
Operations bulk form for custom content entity
There is a custom entity called organisation. I am trying to build a view to allow bulk delete of the entities.
I checked the view for display content and there is a field to display the checkbox(...
0
votes
0
answers
294
views
how to change node submit form text for all users?
I created the node type 'application',which can be added by any users and will be unpublished by default.
I used hook_form_id_alter() to change the text of the submit button as below:
function ...
1
vote
1
answer
555
views
Unable to change the author of content using views/action
I want to change the author of multiple nodes. I have set up a new action by going to /admin/config/system/actions and then selecting "CREATE AN ADVANCED ACTION" and then "Change the author of content....
1
vote
2
answers
598
views
How can I produce a non-blocking process to modify newly created nodes of custom content type?
I have a custom content type called a Scan where the only required field is ISBN. Nodes of this type are created when a user POSTs to my REST API endpoint with an ISBN number. That's all working fine, ...
1
vote
1
answer
2k
views
How to use tokens in data selectors in Rules and how to get autocomplete to work?
In Drupal 7, the Rules module was quite simple to use. You create a rule, define it's action and done. In Drupal 8 version of Rules however, i.e the alfa1 version (which is what I'm using), I see some ...
0
votes
2
answers
3k
views
Different ways of logging in a user without having them to type anything?
I'm on Drupal 8 and currently looking to replicate similar functionality like: https://www.drupal.org/project/urllogin -- They do not have a D8 version yet.
I need to auto login a specific user ...
1
vote
1
answer
394
views
Is it possible to create an action with derivatives?
Is it possible to create an action in Drupal 8 and point it at a deriver class to generate them automatically?
For example with Custom Publishing Options I have a ConfigurableActionBase action that ...
2
votes
1
answer
356
views
How to embed plugin configuration form elements into another form?
I have a form that lists entities and each of the entities has a checkbox.
The form also contains a list of actions(Action plugin) that can be performed on selected entities as a select list.
I would ...
9
votes
4
answers
8k
views
How do I Bulk Edit Fields or Taxonomy of Nodes?
I'm working on a site that needs bulk tagging on nodes. The D8 core View Bulk Operations Port is "simple" (https://www.drupal.org/node/1823572) and it doesn't have "modify entity values" which I used ...
3
votes
4
answers
2k
views
Is it possible to select all results in Views bulk actions form?
By all results I mean even those that are not displayed on the current page(if there is paging).
2
votes
1
answer
2k
views
How to perform a REST request after a node created using rules?
I have a backend service written by Python, which is exposed a JSON api. And I want drupal to perform an HTTP POST/PUT/PATCH/DELETE... request with json data (which is an output of a node) to the ...