class EntityModerationForm
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
/** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
$entity = $form_state->get('entity');
/** @var \Drupal\Core\Entity\ContentEntityStorageInterface $storage */
$storage = \Drupal::entityTypeManager()->getStorage($entity->getEntityTypeId());
Postponed on 🐛 Make the moderation control form an entity form so that it validates entities before save Needs work . See #5.
Postponed
10.1 ✨
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.