function ModeratedNodeListBuilder::buildRow
Overrides NodeListBuilder::buildRow
File
-
core/
modules/ content_moderation/ src/ ModeratedNodeListBuilder.php, line 113
Class
- ModeratedNodeListBuilder
- Defines a class to build a listing of moderated node entities.
Namespace
Drupal\content_moderationCode
public function buildRow(EntityInterface $entity) {
$row = parent::buildRow($entity);
$row['status'] = $entity->moderation_state->value;
return $row;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.