You are here

function skinr_skin_info_status_get in Skinr 8.2

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

Retrieve the overridden status of a skin.

Parameters

$skin_info: Information about a registered skin.

Return value

An array of statuses for each enabled theme. If no overrides are found, the status defaults will be returned.

6 calls to skinr_skin_info_status_get()
LibraryListForm::buildForm in skinr_ui/src/Form/LibraryListForm.php
Form constructor.
LibraryListForm::submitForm in skinr_ui/src/Form/LibraryListForm.php
Form submission handler.
SkinEditForm::form in skinr_ui/src/Form/SkinEditForm.php
Gets the actual form array to be built.
skinr_preprocess in ./skinr.module
Implements hook_preprocess().
skinr_ui_get_skinable_hooks in skinr_ui/skinr_ui.module
Fetch all theme_hooks that are compatible with active skins.

... See full list

File

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

Code

function skinr_skin_info_status_get($skin_info) {
  $status = \Drupal::config('skinr.status')
    ->get($skin_info['name']);

  // We don't get a default returned for dynamically created config.
  if (is_null($status)) {
    $status = $skin_info['status'];
  }
  return $status;
}