public static function StorageHelper::instance in Menus attribute 8
Function to create object of storage helper class.
3 calls to StorageHelper::instance()
- menus_attribute_form_alter in ./
menus_attribute.module - Implements hook_form_FORM_ID_alter().
- TwigExtension::menusAttribute in src/
Template/ TwigExtension.php - Returns added attributes for list.
- _menus_attribute_form_submit_handler in ./
menus_attribute.module - Submit handler.
File
- src/
StorageHelper.php, line 17
Class
- StorageHelper
- Helper Class for database interaction.
Namespace
Drupal\menus_attributeCode
public static function instance() {
static $inst = NULL;
if ($inst === NULL) {
$inst = new StorageHelper();
}
return $inst;
}