Defines the file entity class.

Hierarchy

Expanded class hierarchy of File

File

core/modules/file/file.entity.inc, line 10
Entity controller and class for files.

Members

Contains filters are case sensitive
Namesort ascending Modifiers Type Description
File::__construct public function Constructor for file entities. Overrides Entity::__construct
File::uri public function Implements EntityInterface::uri(). Overrides EntityInterface::uri
File::label public function Implements EntityInterface::label(). Overrides EntityInterface::label
File::id public function Implements EntityInterface::id(). Overrides EntityInterface::id
File::entityType public function Implements EntityInterface::entityType(). Overrides EntityInterface::entityType
File::$uri public property The URI to access the file (either local or remote).
File::$uid public property The uid of the user who is associated with the file.
File::$timestamp public property UNIX timestamp for when the file was last saved.
File::$status public property A field indicating the status of the file.
File::$langcode public property The file language code.
File::$filesize public property The size of the file in bytes.
File::$filename public property Name of the file with no path components.
File::$filemime public property The file's MIME type.
File::$fid public property The file ID.
Entity::save public function Implements EntityInterface::save(). Overrides EntityInterface::save
Entity::isNew public function Implements EntityInterface::isNew(). Overrides EntityInterface::isNew
Entity::delete public function Implements EntityInterface::delete(). Overrides EntityInterface::delete
Entity::createDuplicate public function Implements EntityInterface::createDuplicate(). Overrides EntityInterface::createDuplicate
Entity::bundle public function Implements EntityInterface::bundle(). Overrides EntityInterface::bundle