public function DefaultModuleHelper::getModule

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

Gets the module machine name.

@todo Consider rename to getModuleName.

Return value

string The module machine name.

Overrides IModuleHelper::getModule

20 calls to DefaultModuleHelper::getModule()
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.
AdminMenuItem::pageArguments in lib/Drupal/ooe/Admin/AdminMenuItem.php
Forces the page arguments to meet a convention MYMODULE_form_admin.
CurrentPosts::myMenuItem in lib/Drupal/ooe/Demo/Adapted/CurrentPosts.php
Creates and configures a new menu item.

... See full list

File

lib/Drupal/ooe/Module/DefaultModuleHelper.php, line 67
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 getModule() {
  return $this->module;
}