function PublicStream::getType

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/StreamWrapper/PublicStream.php \Drupal\Core\StreamWrapper\PublicStream::getType()
  2. 8.9.x core/lib/Drupal/Core/StreamWrapper/PublicStream.php \Drupal\Core\StreamWrapper\PublicStream::getType()
  3. 10 core/lib/Drupal/Core/StreamWrapper/PublicStream.php \Drupal\Core\StreamWrapper\PublicStream::getType()

Overrides LocalStream::getType

2 methods override PublicStream::getType()
AssetsStream::getType in core/lib/Drupal/Core/StreamWrapper/AssetsStream.php
Returns the type of stream wrapper.
DummyRemoteReadOnlyStreamWrapper::getType in core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteReadOnlyStreamWrapper.php
Returns the type of stream wrapper.

File

core/lib/Drupal/Core/StreamWrapper/PublicStream.php, line 21

Class

PublicStream
Defines a Drupal public (public://) stream wrapper class.

Namespace

Drupal\Core\StreamWrapper

Code

public static function getType() {
    return StreamWrapperInterface::LOCAL_NORMAL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.