You are here

function skinr_get_config_info in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 skinr.module \skinr_get_config_info()

Fetch Skinr configuration data from functionality plugins.

Return value

An array of all configuration data.

8 calls to skinr_get_config_info()
Skin::elementTypeLabel in src/Entity/Skin.php
Returns the element_type label.
SkinEditForm::form in skinr_ui/src/Form/SkinEditForm.php
Gets the actual form array to be built.
SkinrApiTest::testSkinrConfigInfo in src/Tests/SkinrApiTest.php
Tests hook_skinr_config_info().
SkinrApiTestCase::testSkinrConfigInfo in src/Tests/skinr.test
Tests hook_skinr_config_info().
skinr_context_ui_filters in skinr_context/skinr_context_ui.admin.inc
List skinr administration filters that can be applied.

... See full list

File

./skinr.module, line 1234
Handles core Skinr functionality.

Code

function skinr_get_config_info() {
  $config_info =& drupal_static(__FUNCTION__);
  if (!isset($config_info)) {
    if ($cached = \Drupal::cache()
      ->get('skinr_config_info')) {
      $config_info = $cached->data;
      return $config_info;
    }
    $config_info = skinr_invoke_all('skinr_config_info');

    // Allow modules to alter config info via hook_skinr_config_info_alter().
    \Drupal::moduleHandler()
      ->alter('skinr_config_info', $config_info);
    \Drupal::cache()
      ->set('skinr_config_info', $config_info);
  }
  return $config_info;
}