Form submission handler for the 'publish' action.
$form: An associative array containing the structure of the form.
$form_state: A reference to a keyed array containing the current state of the form.
public function publish(array $form, array &$form_state) {
$node = $this->entity;
$node->status = 1;
return $node;
}