function ThemeStream::getDescription

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

Return value

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

Overrides StreamWrapperInterface::getDescription

File

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

Class

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

Namespace

Drupal\Core\StreamWrapper

Code

public function getDescription() : TranslatableMarkup {
  return new TranslatableMarkup("Local files stored under a theme's directory.");
}

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