diff --git a/Classes/Hooks/CmsLayout.php b/Classes/Hooks/CmsLayout.php index 65389dd..38354ed 100644 --- a/Classes/Hooks/CmsLayout.php +++ b/Classes/Hooks/CmsLayout.php @@ -42,13 +42,6 @@ public function __construct(ResourceFactory $resourceFactory = null) $this->resourceFactory = $resourceFactory ?? GeneralUtility::makeInstance(ResourceFactory::class); } - /** - * Table information - * - * @var array - */ - public $tableData = []; - /** * Flexform information * @@ -64,6 +57,7 @@ public function __construct(ResourceFactory $resourceFactory = null) */ public function getExtensionSummary(array $params) { + $tableData = []; $result = '' . $this->sL('plugin.title') . ''; if ($params['row']['list_type'] === 'falsecuredownload_filetree') { @@ -78,7 +72,7 @@ public function getExtensionSummary(array $params) } if ($storageName) { - $this->tableData[] = [ + $tableData[] = [ $this->sL('flexform.storage'), $storageName ]; @@ -86,12 +80,12 @@ public function getExtensionSummary(array $params) // Folder $folder = $this->getFieldFromFlexform('settings.folder'); - $this->tableData[] = [ + $tableData[] = [ $this->sL('flexform.folder'), $folder ]; - $result .= $this->renderSettingsAsTable(); + $result .= $this->renderSettingsAsTable($tableData); $result = '
' . $result . '
'; } @@ -102,16 +96,17 @@ public function getExtensionSummary(array $params) * Render the settings as table for Web>Page module * System settings are displayed in mono font * + * @param array $tableData * @return string */ - protected function renderSettingsAsTable() + protected function renderSettingsAsTable(array $tableData) { - if (count($this->tableData) == 0) { + if (count($tableData) == 0) { return ''; } $content = ''; - foreach ($this->tableData as $line) { + foreach ($tableData as $line) { $content .= '' . $line[0] . '  ' . ' ' . $line[1] . ''; }