mirror of
https://github.com/quentin-g-dev/afup.git
synced 2026-03-24 17:22:06 +01:00
34 lines
599 B
PHP
34 lines
599 B
PHP
<?php
|
|
|
|
namespace AppBundle\Controller;
|
|
|
|
class BlocksHandler
|
|
{
|
|
/** @var array<string, string> */
|
|
protected $defaultBlocks = [];
|
|
|
|
/**
|
|
* @param array{
|
|
* community: string,
|
|
* header: string,
|
|
* sidebar: string,
|
|
* social: string,
|
|
* footer: string
|
|
* }
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setDefaultBlocks(array $blocks)
|
|
{
|
|
$this->defaultBlocks = $blocks;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, string>
|
|
*/
|
|
public function getDefaultBlocks()
|
|
{
|
|
return $this->defaultBlocks;
|
|
}
|
|
}
|