Esempio n. 1
0
 /**
  * Layout constructor.
  *
  * @param TemplateView|string $template
  * @param array $data
  * @param ResourceManager|null $resourceManager (optional)
  */
 public function __construct($template, array $data = [], ResourceManager $resourceManager = null)
 {
     parent::__construct([]);
     $this->setData($data);
     $this->setTemplate($template);
     $this->resourceManager = $resourceManager;
 }
 /**
  * ManagedList constructor.
  *
  * @param null $dataProvider
  * @param PartInterface[] $components
  */
 public function __construct($dataProvider = null, $components = [])
 {
     $this->setDataProvider($dataProvider);
     parent::__construct($this->mergeWithDefaultComponents($components));
 }