Skip to content

Conversation

milkovsky
Copy link
Contributor

*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $storage) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->storage = $storage;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure about this __construct()

Copy link
Owner

Choose a reason for hiding this comment

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

seems ok?

Conflicts:
	src/Plugin/RulesAction/EntitySave.php
	tests/src/Integration/Action/EntityCreateTest.php
'context' => [
'entity' => ContextDefinition::create("entity:$entity_type_id")
->setLabel($entity_type->getLabel())
->setDescription($this->t('Specifies the entity, which should be saved permanently.'))
Copy link
Owner

Choose a reason for hiding this comment

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

Specifies the entity, which should be saved permanently - should be improved to

Specifies the @entity-type-label that should be saved permanently.

@milkovsky
Copy link
Contributor Author

2 options:

  1. change tests to support the derived action
  2. add new action rules_entity_save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants