You are here

protected function ProfileStream::getOwnerName in System stream wrapper 8

Gets the module, theme, or profile name of the current URI.

This will return the name of the module, theme or profile e.g.

SystemStream::getOwnerName('module://foo');

and

SystemStream::getOwnerName('module://foo/');

will both return

'foo';

Return value

string The extension name.

Overrides ModuleStream::getOwnerName

File

src/StreamWrapper/ProfileStream.php, line 15

Class

ProfileStream
Defines the read-only profile:// stream wrapper for installed profile files.

Namespace

Drupal\system_stream_wrapper\StreamWrapper

Code

protected function getOwnerName() {
  return \Drupal::installProfile();
}