Racing condition - najprej uporabnik urednik, potem poslji mail.
parent
1ab9d5f2b5
commit
98f6e751e7
|
@ -12,7 +12,8 @@ use Drupal\node\NodeInterface;
|
||||||
/**
|
/**
|
||||||
* Implements hook_entity_update().
|
* Implements hook_entity_update().
|
||||||
*/
|
*/
|
||||||
function yufu_concept_entity_update(EntityInterface $entity) {
|
function yufu_admin_node_presave(EntityInterface $entity) {
|
||||||
|
//function yufu_concept_entity_update(EntityInterface $entity) {
|
||||||
if ($entity instanceOf NodeInterface && $entity->bundle() == 'concept') {
|
if ($entity instanceOf NodeInterface && $entity->bundle() == 'concept') {
|
||||||
$transition = \Drupal::service('content_moderation_notifications.notification_information')->getTransition($entity);
|
$transition = \Drupal::service('content_moderation_notifications.notification_information')->getTransition($entity);
|
||||||
if ($transition->id() == 'publish') {
|
if ($transition->id() == 'publish') {
|
||||||
|
|
Loading…
Reference in New Issue