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

Breadcrumb

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

function LocalFile::reloadContent

Loads the latest version of the file's content from the file system.

Return value

void

Overrides File::reloadContent

1 call to LocalFile::reloadContent()
LocalFile::__construct in vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php
Creates a LocalFile object and sets the content.

File

vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php, line 73

Class

LocalFile

Namespace

PHP_CodeSniffer\Files

Code

public function reloadContent() {
    $this->setContent(file_get_contents($this->path));
}
RSS feed
Powered by Drupal