You are here

function _tipsy_get_settings in Tipsy 8

Same name and namespace in other branches
  1. 7 tipsy.module \_tipsy_get_settings()

Helper function to retreive all settings for tipsy.

3 calls to _tipsy_get_settings()
AdminSettingsForm::buildForm in src/Form/AdminSettingsForm.php
Form constructor.
AdminSettingsForm::tipsyOptionsForm in src/Form/AdminSettingsForm.php
Implementation of form function for the tooltip options.
tipsy_page_attachments in ./tipsy.module
Implements hook_page_attachments().

File

./tipsy.module, line 57
Main file for Tipsy module.

Code

function _tipsy_get_settings($new_rule = FALSE) {
  if ($new_rule == TRUE) {
    $settings = \Drupal::configFactory()
      ->getEditable('tipsy.settings')
      ->get('new_rule_settings');
  }
  else {
    $settings = \Drupal::configFactory()
      ->getEditable('tipsy.settings')
      ->get('wide_settings');
  }
  return $settings;
}