How do I save uploaded file permanently in file_manged table? How do I save a uploaded file with status equal to 1 in the file_managed table, in Drupal 8?

Whenever I upload a file, it is stored in the file_managed table with status value 0.
I have used File::load( $form_state-&gt;getValue('image')) to load the file. What do I need to do next?

In Drupal 7, I would use $file-&gt;status = FILE_STATUS_PERMANENT. What is the equivalent code for Drupal 8? 

class AddBannerForm extends FormBase {


public function getFormId()
{
  return 'add_banner_form';
}

public function buildForm(array $form, FormStateInterface $form_state)
{


  $form['image'] = array(
    '#type'          =&gt; 'managed_file',
    '#title'         =&gt; t('Choose Image File'),
    '#upload_location' =&gt; 'public://images/',
    '#default_value' =&gt; '',
    '#description'   =&gt; t('Specify an image(s) to display.'),
    '#states'        =&gt; array(
      'visible'      =&gt; array(
        ':input[name="image_type"]' =&gt; array('value' =&gt; t('Upload New Image(s)')),
      ),
    ),
  );

  $form['submit'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Save image'),
  );

  return $form;
}


public function validateForm(array &amp;$form, FormStateInterface $form_state)
{
    File::load( $form_state-&gt;getValue('image') );
}


public function submitForm(array &amp;$form, FormStateInterface $form_state)
{

}
}
Thank you @Clive &amp;  @kiamlaluno

/* Fetch the array of the file stored temporarily in database */ 
   $image = $form_state-&gt;getValue('image');

/* Load the object of the file by it's fid */ 
   $file = File::load( $image[0] );

/* Set the status flag permanent of the file object */
   $file-&gt;setPermanent();

/* Save the file in database */
   $file-&gt;save();