protected function SkinsEditForm::isFeatured in Skinr 8.2
Helper function to determine whether one of a set of hooks exists in a list of required theme hooks.
@todo Rename function to be more descriptive.
Parameters
$theme_hooks: An array of theme hooks available to this element.
$allowed_hooks: An array of allowed theme hooks.
Return value
boolean TRUE if an overlap is found, FALSE otherwise.
1 call to SkinsEditForm::isFeatured()
- SkinsEditForm::buildForm in skinr_ui/
src/ Form/ SkinsEditForm.php - Form constructor.
File
- skinr_ui/
src/ Form/ SkinsEditForm.php, line 449 - Contains Drupal\skinr_ui\Form\SkinsEditForm.
Class
Namespace
Drupal\skinr_ui\FormCode
protected function isFeatured($theme_hooks, $allowed_hooks) {
foreach ($theme_hooks as $theme_hook) {
if (in_array($theme_hook, $allowed_hooks)) {
return TRUE;
}
}
return FALSE;
}