Pocisceno
parent
33c57b8594
commit
2be8cf3f60
|
@ -13,7 +13,6 @@ use Drupal\node\NodeInterface;
|
|||
* Implements hook_entity_update().
|
||||
*/
|
||||
function yufu_concept_node_presave(EntityInterface $entity) {
|
||||
//function yufu_concept_entity_update(EntityInterface $entity) {
|
||||
if ($entity instanceOf NodeInterface && $entity->bundle() == 'concept') {
|
||||
$transition = \Drupal::service('content_moderation_notifications.notification_information')->getTransition($entity);
|
||||
if ($transition->id() == 'publish') {
|
||||
|
|
Loading…
Reference in New Issue