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
Name Modifiers Typesort descending Description
File::__construct public function Constructor for file entities. Overrides Entity::__construct
File::id public function Implements EntityInterface::id(). Overrides EntityInterface::id
File::entityType public function Implements EntityInterface::entityType(). Overrides EntityInterface::entityType
File::label public function Implements EntityInterface::label(). Overrides EntityInterface::label
File::uri public function Implements EntityInterface::uri(). Overrides EntityInterface::uri
File::bundle public function Implements EntityInterface::bundle(). Overrides Entity::bundle
File::access public function Overrides Entity::access(). Overrides Entity::access
File::createAccess public static function Overrides Entity::createAccess(). Overrides Entity::createAccess
Entity::isNew public function Implements EntityInterface::isNew(). Overrides EntityInterface::isNew
Entity::save public function Implements EntityInterface::save(). Overrides EntityInterface::save
Entity::delete public function Implements EntityInterface::delete(). Overrides EntityInterface::delete
Entity::createDuplicate public function Implements EntityInterface::createDuplicate(). Overrides EntityInterface::createDuplicate
Entity::getFieldValue public function Implements EntityInterface::getFieldValue(). Overrides EntityInterface::getFieldValue
Entity::getFieldValues public function Implements EntityInterface::getFieldValues(). Overrides EntityInterface::getFieldValues
Entity::getRevisionId public function Implements Backdrop\entity\EntityInterface::getRevisionId(). Overrides EntityInterface::getRevisionId
Entity::isActiveRevision public function Implements Backdrop\entity\EntityInterface::isActiveRevision(). Overrides EntityInterface::isActiveRevision
Entity::setIsActiveRevision public function Implements Backdrop\entity\EntityInterface::setActiveRevision(). Overrides EntityInterface::setIsActiveRevision
Entity::buildContent public function Implements EntityInterface::buildContent(). Overrides EntityInterface::buildContent
Entity::view public function Implements EntityInterface::view(). Overrides EntityInterface::view
File::$fid public property The file ID.
File::$langcode public property The file language code.
File::$uid public property The uid of the user who is associated with the file.
File::$filename public property Name of the file with no path components.
File::$uri public property The URI to access the file (either local or remote).
File::$filemime public property The file's MIME type.
File::$filesize public property The size of the file in bytes.
File::$status public property A field indicating the status of the file.
File::$timestamp public property UNIX timestamp for when the file was last saved.
File::$type public property The file type (bundle).
Entity::$is_active_revision public property Indicates whether this is the active revision.