‪TYPO3CMS  11.5
AbstractSectionMarkupGeneratedEvent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Psr\EventDispatcher\StoppableEventInterface;
23 
24 abstract class ‪AbstractSectionMarkupGeneratedEvent implements StoppableEventInterface
25 {
30 
34  private int ‪$languageId;
35 
36  private array ‪$columnConfig;
38  private array ‪$records;
39 
40  private string ‪$content = '';
41  private bool ‪$stopRendering = false;
42 
43  public function ‪__construct(
45  int ‪$languageId,
46  array ‪$columnConfig,
48  array ‪$records
49  ) {
50  $this->pageLayoutView = ‪$pageLayoutView;
51  $this->languageId = ‪$languageId;
52  $this->columnConfig = ‪$columnConfig;
53  $this->pageLayoutContext = ‪$pageLayoutContext;
54  $this->records = ‪$records;
55  }
56 
62  {
63  trigger_error(
64  __METHOD__ . ' is deprecated and will be removed in TYPO3 v12. Use the PageLayoutContext instead.',
65  E_USER_DEPRECATED
66  );
67 
69  }
70 
75  public function ‪getLanguageId(): int
76  {
77  trigger_error(
78  __METHOD__ . ' is deprecated and will be removed in TYPO3 v12. Fetch the language via the PageLayoutContext instead.',
79  E_USER_DEPRECATED
80  );
81 
82  return ‪$this->languageId;
83  }
84 
85  public function ‪getColumnConfig(): array
86  {
88  }
89 
91  {
93  }
94 
95  public function ‪getRecords(): array
96  {
97  return ‪$this->records;
98  }
99 
100  public function ‪setContent(string ‪$content = ''): void
101  {
102  $this->content = ‪$content;
103  }
104 
105  public function ‪getContent(): string
106  {
107  return ‪$this->content;
108  }
109 
113  public function ‪isPropagationStopped(): bool
114  {
116  }
117 
118  public function ‪setStopRendering(bool ‪$stopRendering): void
119  {
120  $this->stopRendering = ‪$stopRendering;
121  }
122 }
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\getContent
‪getContent()
Definition: AbstractSectionMarkupGeneratedEvent.php:105
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\getPageLayoutView
‪PageLayoutView getPageLayoutView()
Definition: AbstractSectionMarkupGeneratedEvent.php:61
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\$records
‪array $records
Definition: AbstractSectionMarkupGeneratedEvent.php:38
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\$stopRendering
‪bool $stopRendering
Definition: AbstractSectionMarkupGeneratedEvent.php:41
‪TYPO3\CMS\Backend\View\Event
Definition: AbstractSectionMarkupGeneratedEvent.php:18
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\$languageId
‪int $languageId
Definition: AbstractSectionMarkupGeneratedEvent.php:34
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\getLanguageId
‪int getLanguageId()
Definition: AbstractSectionMarkupGeneratedEvent.php:75
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\__construct
‪__construct(PageLayoutView $pageLayoutView, int $languageId, array $columnConfig, PageLayoutContext $pageLayoutContext, array $records)
Definition: AbstractSectionMarkupGeneratedEvent.php:43
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\$pageLayoutContext
‪PageLayoutContext $pageLayoutContext
Definition: AbstractSectionMarkupGeneratedEvent.php:37
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\setStopRendering
‪setStopRendering(bool $stopRendering)
Definition: AbstractSectionMarkupGeneratedEvent.php:118
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\getColumnConfig
‪getColumnConfig()
Definition: AbstractSectionMarkupGeneratedEvent.php:85
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\getRecords
‪getRecords()
Definition: AbstractSectionMarkupGeneratedEvent.php:95
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\$columnConfig
‪array $columnConfig
Definition: AbstractSectionMarkupGeneratedEvent.php:36
‪TYPO3\CMS\Backend\View\PageLayoutContext
Definition: PageLayoutContext.php:43
‪TYPO3\CMS\Backend\View\PageLayoutView
Definition: PageLayoutView.php:58
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\$content
‪string $content
Definition: AbstractSectionMarkupGeneratedEvent.php:40
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\setContent
‪setContent(string $content='')
Definition: AbstractSectionMarkupGeneratedEvent.php:100
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\getPageLayoutContext
‪getPageLayoutContext()
Definition: AbstractSectionMarkupGeneratedEvent.php:90
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\$pageLayoutView
‪PageLayoutView $pageLayoutView
Definition: AbstractSectionMarkupGeneratedEvent.php:29
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent
Definition: AbstractSectionMarkupGeneratedEvent.php:25
‪TYPO3\CMS\Backend\View\Event\AbstractSectionMarkupGeneratedEvent\isPropagationStopped
‪isPropagationStopped()
Definition: AbstractSectionMarkupGeneratedEvent.php:113