Returns an array of supported actions for the current entity form.
protected function actions(array $form, array &$form_state) {
return array(
// @todo Rename the action key from submit to save.
'submit' => array(
'#value' => t('Save'),
'#validate' => array(
array(
$this,
'validate',
),
),
'#submit' => array(
array(
$this,
'submit',
),
array(
$this,
'save',
),
),
),
'delete' => array(
'#value' => t('Delete'),
// No need to validate the form when deleting the entity.
'#submit' => array(
array(
$this,
'delete',
),
),
),
);
}