function ModuleHandlerInterface::getName

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::getName()
  2. 10 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::getName()
  3. 11.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::getName()

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.

1 method overrides ModuleHandlerInterface::getName()
ModuleHandler::getName in core/lib/Drupal/Core/Extension/ModuleHandler.php
Gets the human readable name of a given module.

File

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

Class

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

Namespace

Drupal\Core\Extension

Code

public function getName($module);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.