Adds isHidden check to backend components widget
Allows components to be hidden from the backend components widget by checking their isHidden value https://github.com/octobercms/october/blob/master/modules/cms/classes/ComponentBase.php#L41
This commit is contained in:
parent
e1ebfac575
commit
3ca540ac61
|
|
@ -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…
Reference in New Issue