Habari\Monolith::get_blocks PHP Метод

get_blocks() публичный Метод

Get the blocks for this theme in teh specified area, overrides the default handling to implement dashboard modules
public get_blocks ( string $area, string $scope, Theme $theme ) : array
$area string The area to return blocks for
$scope string The scope in which the blocks exist
$theme Theme The theme for which the blocks will be returned
Результат array An array of Blocks
    public function get_blocks($area, $scope, $theme)
    {
        if ($area == 'dashboard') {
            $area = 'dashboard_' . User::identify()->id;
        }
        return parent::get_blocks($area, $scope, $theme);
    }