class Drupal\eca_render\Plugin\Action\GetActiveTheme does not have a method "alwaysFalse"
Problem/Motivation
When I add the "Get active theme" action to a any models (even a empty one), when I try and save I get the ajax error:
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /admin/config/workflow/eca/bpmn_io/save
StatusText: error
ResponseText: The website encountered an unexpected error. Try again later.TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, class Drupal\eca_render\Plugin\Action\GetActiveTheme does not have a method "alwaysFalse" in call_user_func() (line 276 of core/lib/Drupal/Core/Render/Element/MachineName.php). Drupal\Core\Render\Element\MachineName::validateMachineName(Array, Object, Array)
call_user_func_array(Array, Array) (Line: 282)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'eca_runtime_plugin_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('eca_runtime_plugin_form', Array, Object) (Line: 593)
Drupal\Core\Form\FormBuilder->processForm('eca_runtime_plugin_form', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 555)
Drupal\eca\Entity\Eca->validatePlugin(Object, Array, 'action', 'eca_get_active_theme', '') (Line: 417)
Drupal\eca\Entity\Eca->addAction('Activity_0abdr4h', 'eca_get_active_theme', '', Array, Array) (Line: 520)
Drupal\eca_modeller_bpmn\ModellerBpmnBase->readComponents(Object) (Line: 185)
Drupal\eca\Service\Modellers->saveModel(Object) (Line: 159)
After posting to ECA drupal slack:
jurgenhaas:
I haven't seen that before, but it seems unique to the GetActiveTheme action plugin which should extend the RenderActionBase, but doesn't. Please file a bug report for that.
Steps to reproduce
- Create a new modal
- Add the "Get active theme" action to the modal.
- Save the model
- In the browser console the ajax error should be displaying
Proposed resolution
Change plugin to extend the RenderActionBase
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Edited by drupalbot