function ThemeStream::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

File

core/lib/Drupal/Core/StreamWrapper/ThemeStream.php, line 26

Class

ThemeStream
Defines the read-only theme:// stream wrapper for theme files.

Namespace

Drupal\Core\StreamWrapper

Code

public function getName() : TranslatableMarkup {
  return new TranslatableMarkup('Theme files');
}

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