public function DefaultModuleHelper::getModuleDisplayName

7.x-1.x DefaultModuleHelper.php public DefaultModuleHelper::getModuleDisplayName()

A human readable and displayable name of the module.

Return value

string The module display name (if set) or the module machine name as upper case.

Overrides IModuleHelper::getModuleDisplayName

13 calls to DefaultModuleHelper::getModuleDisplayName()
AbstractControlledProject::newPageMenuItem in lib/Drupal/ooe/Project/AbstractControlledProject.php
Creates a default new page menu item using the primary page controller.
AbstractProject::newBlock in lib/Drupal/ooe/Project/AbstractProject.php
A helper method to assist in implementing @link AbstractBlock::myBlock().
AbstractProject::newMenuItem in lib/Drupal/ooe/Project/AbstractProject.php
Creates a new basic menu item with an explicit .module file callback.
CurrentPosts::myBlockView in lib/Drupal/ooe/Demo/Adapted/CurrentPosts.php
Implemented to obtain a block view product from a factory.
Demo::myBlockView in lib/Drupal/ooe/Demo/Project/Demo.php
Implemented to provide a new DemoBlockView.

... See full list

File

lib/Drupal/ooe/Module/DefaultModuleHelper.php, line 178
DefaultModuleHelper

Class

DefaultModuleHelper
Classes that need to keep a record of the name of the module they serve may choose to extend this.

Namespace

Drupal\ooe\Module

Code

public function getModuleDisplayName() {
  if (!empty($this->displayName)) {
    return $this->displayName;
  }
  return strtoupper($this->module);
}