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

Breadcrumb

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

function vfsStreamFile::isLocked

checks whether file is locked

@since 0.10.0

Parameters

resource|vfsStreamWrapper $resource:

Return value

bool

See also

https://github.com/mikey179/vfsStream/issues/6

https://github.com/mikey179/vfsStream/issues/40

1 call to vfsStreamFile::isLocked()
vfsStreamFile::lock in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamFile.php
locks file for

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamFile.php, line 338

Class

vfsStreamFile
File container.

Namespace

org\bovigo\vfs

Code

public function isLocked($resource = null) {
    return $this->hasSharedLock($resource) || $this->hasExclusiveLock($resource);
}

API Navigation

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