vendor/netgen/layouts-core/lib/View/View/LayoutView.php line 10

  1. <?php
  2. declare(strict_types=1);
  3. namespace Netgen\Layouts\View\View;
  4. use Netgen\Layouts\API\Values\Layout\Layout;
  5. use Netgen\Layouts\View\View;
  6. final class LayoutView extends View implements LayoutViewInterface
  7. {
  8.     public function __construct(Layout $layout)
  9.     {
  10.         $this->parameters['layout'] = $layout;
  11.     }
  12.     public function getLayout(): Layout
  13.     {
  14.         return $this->parameters['layout'];
  15.     }
  16.     public static function getIdentifier(): string
  17.     {
  18.         return 'layout';
  19.     }
  20. }