Overrides Drupal\Core\Entity\EntityFormController::actions().
Overrides EntityFormController::actions
public function actions(array $form, array &$form_state) {
$elements = parent::actions($form, $form_state);
$elements['submit']['#value'] = t('Send message');
$elements['delete']['#access'] = FALSE;
$elements['preview'] = array(
'#value' => t('Preview'),
'#validate' => array(
array(
$this,
'validate',
),
),
'#submit' => array(
array(
$this,
'submit',
),
array(
$this,
'preview',
),
),
);
return $elements;
}