function ModuleStream::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/ModuleStream.php, line 33

Class

ModuleStream
Defines the read-only module:// stream wrapper for module files.

Namespace

Drupal\Core\StreamWrapper

Code

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

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