public function FeedbackMessage::setPublished in Feedback 3.x
Sets the published status of a Feedback message.
Parameters
bool $published: TRUE to set this Feedback message to published, FALSE to set it to unpublished.
Return value
\Drupal\feedback\FeedbackMessageInterface The called Feedback message entity.
Overrides FeedbackMessageInterface::setPublished
File
- src/
Entity/ FeedbackMessage.php, line 151
Class
- FeedbackMessage
- Defines the Feedback message entity.
Namespace
Drupal\feedback\EntityCode
public function setPublished($published) {
$this
->set('status', $published ? NodeInterface::PUBLISHED : NodeInterface::NOT_PUBLISHED);
return $this;
}