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

Breadcrumb

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

function File::getCreatedTime

Overrides FileInterface::getCreatedTime

File

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

Class

File
Defines the file entity class.

Namespace

Drupal\file\Entity

Code

public function getCreatedTime() {
    $created = $this->get('created')->value;
    return isset($created) ? (int) $created : NULL;
}

API Navigation

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