mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Merge pull request #875 from scottbedard/patch-2
Adds isHidden check to backend components widget
This commit is contained in:
commit
ddaceb5ad7
@ -112,6 +112,11 @@ class ComponentList extends WidgetBase
|
||||
$className = $componentInfo->className;
|
||||
$alias = $componentInfo->alias;
|
||||
$component = new $className();
|
||||
|
||||
if ($component->isHidden) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$componentDetails = $component->componentDetails();
|
||||
$component->alias = '--alias--';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user