Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StreamWrapperInterface.php

function StreamWrapperInterface::dirname

Gets the name of the directory from a given path.

This method is usually accessed through \Drupal\Core\File\FileSystemInterface::dirname(), which wraps around the normal PHP dirname() function, which does not support stream wrappers.

Parameters

string $uri: An optional URI.

Return value

string A string containing the directory name, or FALSE if not applicable.

See also

\Drupal\Core\File\FileSystemInterface::dirname()

1 method overrides StreamWrapperInterface::dirname()
LocalStream::dirname in core/lib/Drupal/Core/StreamWrapper/LocalStream.php
Gets the name of the directory from a given path.

File

core/lib/Drupal/Core/StreamWrapper/StreamWrapperInterface.php, line 183

Class

StreamWrapperInterface
Defines a Drupal stream wrapper extension.

Namespace

Drupal\Core\StreamWrapper

Code

public function dirname($uri = NULL);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal