Defines the file entity class.
Hierarchy
- class Entity extends \stdClass implements EntityInterface
- class File
Expanded class hierarchy of File
File
- core/
modules/ file/ file.entity.inc, line 10 - Entity controller and class for files.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
File:: |
public | function |
Constructor for file entities. Overrides Entity:: |
File:: |
public | function |
Implements EntityInterface::id(). Overrides EntityInterface:: |
File:: |
public | function |
Implements EntityInterface::entityType(). Overrides EntityInterface:: |
File:: |
public | function |
Implements EntityInterface::label(). Overrides EntityInterface:: |
File:: |
public | function |
Implements EntityInterface::uri(). Overrides EntityInterface:: |
File:: |
public | function |
Implements EntityInterface::bundle(). Overrides Entity:: |
File:: |
public | function |
Overrides Entity::access(). Overrides Entity:: |
Entity:: |
public | function |
Implements EntityInterface::isNew(). Overrides EntityInterface:: |
Entity:: |
public | function |
Implements EntityInterface::save(). Overrides EntityInterface:: |
Entity:: |
public | function |
Implements EntityInterface::delete(). Overrides EntityInterface:: |
Entity:: |
public | function |
Implements EntityInterface::createDuplicate(). Overrides EntityInterface:: |
Entity:: |
public | function |
Implements EntityInterface::getFieldValue(). Overrides EntityInterface:: |
Entity:: |
public | function |
Implements EntityInterface::getFieldValues(). Overrides EntityInterface:: |
Entity:: |
public | function |
Implements Backdrop\entity\EntityInterface::getRevisionId(). Overrides EntityInterface:: |
Entity:: |
public | function |
Implements Backdrop\entity\EntityInterface::isActiveRevision(). Overrides EntityInterface:: |
Entity:: |
public | function |
Implements Backdrop\entity\EntityInterface::setActiveRevision(). Overrides EntityInterface:: |
Entity:: |
public | function |
Implements EntityInterface::buildContent(). Overrides EntityInterface:: |
Entity:: |
public | function |
Implements EntityInterface::view(). Overrides EntityInterface:: |
File:: |
public | property | The file ID. |
File:: |
public | property | The file language code. |
File:: |
public | property | The uid of the user who is associated with the file. |
File:: |
public | property | Name of the file with no path components. |
File:: |
public | property | The URI to access the file (either local or remote). |
File:: |
public | property | The file's MIME type. |
File:: |
public | property | The size of the file in bytes. |
File:: |
public | property | A field indicating the status of the file. |
File:: |
public | property | UNIX timestamp for when the file was last saved. |
File:: |
public | property | The file type (bundle). |
Entity:: |
public | property | Indicates whether this is the active revision. |
File:: |
public static | function |
Overrides Entity::createAccess(). Overrides Entity:: |