StreamWrapperInterface::dirname

public StreamWrapperInterface::dirname($uri = NULL)

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()

File

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

Class

StreamWrapperInterface
Defines a Drupal stream wrapper extension.

Namespace

Drupal\Core\StreamWrapper

Code

public function dirname($uri = NULL);
doc_Drupal
2016-10-29 09:44:50
Comments
Leave a Comment

Please login to continue.