You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I extended Message entity with a base field which I use to store the output.
Then I pass it in 'rendered fields' array of the notifier options.
And it doesn't work in \Drupal\message_notify\Plugin\Notifier\MessageNotifierBase::postSend because it expects the field must be a cck-one which is not the case in my situation.
Particularly this check breaks everything:
if (!$field = $this->entityTypeManager->getStorage('field_config')->load('message.' . $this->message->bundle() . '.' . $field_name)) {
thrownewMessageNotifyException('Field "' . $field_name . '"" does not exist.');
}
I propose replacing this with the basic: $this->message->hasField($field_name) and not bothering with deducing the nature of the field provided.
The text was updated successfully, but these errors were encountered:
I extended Message entity with a base field which I use to store the output.
Then I pass it in 'rendered fields' array of the notifier options.
And it doesn't work in
\Drupal\message_notify\Plugin\Notifier\MessageNotifierBase::postSend
because it expects the field must be a cck-one which is not the case in my situation.Particularly this check breaks everything:
I propose replacing this with the basic:
$this->message->hasField($field_name)
and not bothering with deducing the nature of the field provided.The text was updated successfully, but these errors were encountered: