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

Returns the name of the stream wrapper for use in the UI.

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup The stream wrapper name.

Overrides StreamWrapperInterface::getName

2 methods override PublicStream::getName()
AssetsStream::getName in core/lib/Drupal/Core/StreamWrapper/AssetsStream.php
Returns the name of the stream wrapper for use in the UI.
DummyRemoteStreamWrapper::getName in core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
Returns the name of the stream wrapper for use in the UI.

File

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

Class

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

Namespace

Drupal\Core\StreamWrapper

Code

public function getName() {
  return t('Public files');
}