vendor/dachcom-digital/toolbox/src/ToolboxBundle/Model/Document/Editable/ColumnAdjuster.php line 8

Open in your IDE?
  1. <?php
  2. namespace ToolboxBundle\Model\Document\Editable;
  3. use Pimcore\Model\Document;
  4. use Pimcore\Tool\Serialize;
  5. class ColumnAdjuster extends Document\Editable
  6. {
  7.     protected array $data = [];
  8.     public function getType(): string
  9.     {
  10.         return 'columnadjuster';
  11.     }
  12.     public function getData(): array
  13.     {
  14.         return $this->data;
  15.     }
  16.     public function frontend(): void
  17.     {
  18.         // nothing to do.
  19.     }
  20.     public function isEmpty(): bool
  21.     {
  22.         return empty($this->data);
  23.     }
  24.     public function setDataFromResource($data): self
  25.     {
  26.         $data Serialize::unserialize($data);
  27.         if (!is_array($data)) {
  28.             $data = [];
  29.         }
  30.         $this->data $data;
  31.         return $this;
  32.     }
  33.     public function setDataFromEditmode(mixed $data): self
  34.     {
  35.         if (!is_array($data)) {
  36.             $data = [];
  37.         }
  38.         $this->data $data;
  39.         return $this;
  40.     }
  41. }