mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
21 lines
383 B
PHP
21 lines
383 B
PHP
<?php
|
|
|
|
namespace App\Web\Traits;
|
|
|
|
trait PageHasCluster
|
|
{
|
|
// public function getMaxContentWidth(): ?string
|
|
// {
|
|
// return 'full';
|
|
// }
|
|
|
|
public function getSubNavigation(): array
|
|
{
|
|
if (filled($cluster = static::getCluster())) {
|
|
return $this->generateNavigationItems($cluster::getClusteredComponents());
|
|
}
|
|
|
|
return [];
|
|
}
|
|
}
|