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

Class

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

Namespace

Drupal\Core\StreamWrapper

Code

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

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