W3cubDocs

/Drupal 8

public function ModuleHandlerInterface::getName

public ModuleHandlerInterface::getName($module)

Gets the human readable name of a given module.

Parameters

string $module: The machine name of the module which title should be shown.

Return value

string Returns the human readable name of the module or the machine name passed in if no matching module is found.

File

core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 310

Class

ModuleHandlerInterface
Interface for classes that manage a set of enabled modules.

Namespace

Drupal\Core\Extension

Code

public function getName($module);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Extension!ModuleHandlerInterface.php/function/ModuleHandlerInterface::getName/8.1.x