Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. File.php

function File::setPermanent

Overrides FileInterface::setPermanent

File

core/modules/file/src/Entity/File.php, line 155

Class

File
Defines the file entity class.

Namespace

Drupal\file\Entity

Code

public function setPermanent() {
    $this->get('status')->value = static::STATUS_PERMANENT;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal