On December 31, 2020 . By CodimTh Category: Web Drupal Get the moderation state of entity or node programmatically in drupal 8 Example how to get the current state programmatically: $entity->get('moderation_state')->getString(); Tags : Drupal Tutorial Drupal Tips Drupal Previous PostUse laravel .env variable in Vue.jsNext PostEntityQuery nodes with date field in drupal 8 & 9 Comments Add new comment Your name Subject Comment About text formats Restricted HTML Leave this field blank
Comments