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

Breadcrumb

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

function 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.

Deprecated

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal::service('extension.list.module')->getName($module) instead.

See also

https://www.drupal.org/node/3310017

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 425

Class

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

Namespace

Drupal\Core\Extension

Code

public function getName($module);
RSS feed
Powered by Drupal