多言語サイトにてdraftのlatest revisionをすべての言語で公開する

Events happening in the community are now at Drupal community events on www.drupal.org.
kototoy's picture

お世話になります。

多言語サイトでdraftのlatest revisionを一括で公開にする方法をご存じの方いらっしゃらないでしょうか?

moderated content bulk publish
https://www.drupal.org/project/moderated_content_bulk_publish

上記モジュールで試したもののうまくいかず、

$storage = \Drupal::entityTypeManager()->getStorage($node->getEntityTypeId());
// latest translation revision id
$revision_id = $storage->getLatestTranslationAffectedRevisionId($nid, $langcode);
$revision = $storage->loadRevision($revision_id);

あたりを使って操作しようとしたのですが、そちらもうまくいきませんでした。

よろしくお願いいたします。

日本 コミュニティ: Drupal Japan User Group

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week