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

Breadcrumb

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

function vfsStreamBlock::__construct

constructor

Parameters

string $name:

int $permissions optional:

Overrides vfsStreamFile::__construct

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamBlock.php, line 25

Class

vfsStreamBlock
Block container.

Namespace

org\bovigo\vfs

Code

public function __construct($name, $permissions = null) {
    if (empty($name)) {
        throw new vfsStreamException('Name of Block device was empty');
    }
    parent::__construct($name, $permissions);
    $this->type = vfsStreamContent::TYPE_BLOCK;
}

API Navigation

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