You are here

public function StreamWrapperInterface::dirname in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/StreamWrapper/StreamWrapperInterface.php \Drupal\Core\StreamWrapper\StreamWrapperInterface::dirname()

Gets the name of the directory from a given path.

This method is usually accessed through drupal_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_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 187
Contains \Drupal\Core\StreamWrapper\StreamWrapperInterface.

Class

StreamWrapperInterface
Defines a Drupal stream wrapper extension.

Namespace

Drupal\Core\StreamWrapper

Code

public function dirname($uri = NULL);