-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Save entity" derivative #419
base: 8.x-3.x
Are you sure you want to change the base?
Conversation
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $storage) { | ||
parent::__construct($configuration, $plugin_id, $plugin_definition); | ||
$this->storage = $storage; | ||
$this->entityTypeId = $plugin_definition['entity_type_id']; |
There was a problem hiding this comment.
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()
There was a problem hiding this comment.
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.')) |
There was a problem hiding this comment.
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.
2 options:
|
https://www.drupal.org/node/2672882