Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
df_tabs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
df_tabs
Merge requests
!6
[FEATURE] add new optional FluidRenderer
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[FEATURE] add new optional FluidRenderer
feature_fluidRenderer
into
master
Overview
3
Commits
3
Pipelines
0
Changes
9
3 unresolved threads
Hide all comments
Merged
Philipp Nowinski
requested to merge
feature_fluidRenderer
into
master
5 years ago
Overview
3
Commits
3
Pipelines
0
Changes
2
3 unresolved threads
Hide all comments
Expand
0
0
Merge request reports
Compare
version 1
version 2
b970e6b3
5 years ago
version 1
1110308d
5 years ago
master (base)
and
version 2
latest version
91c2d59e
3 commits,
5 years ago
version 2
b970e6b3
2 commits,
5 years ago
version 1
1110308d
1 commit,
5 years ago
Show latest version
2 files
+
1
−
77
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Classes/View/FluidView.php
+
0
−
76
Options
@@ -25,89 +25,13 @@ namespace SGalinski\DfTabs\View;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use
SGalinski\DfTabs\Domain\Model\Tab
;
use
TYPO3\CMS\Core\Context\Context
;
use
TYPO3\CMS\Core\Page\PageRenderer
;
use
TYPO3\CMS\Core\SingletonInterface
;
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
use
TYPO3\CMS\Core\Utility\VersionNumberUtility
;
use
TYPO3\CMS\Extbase\Utility\LocalizationUtility
;
use
TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
;
/**
* Renders the content
*/
class
FluidView
implements
SingletonInterface
{
/**
* @var array
*/
protected
$pluginConfiguration
=
[];
/**
* Page Renderer Instance
*
* @var PageRenderer
*/
protected
$pageRenderer
;
/**
* @var ContentObjectRenderer
*/
protected
$contentObject
;
/**
* Internal plugin counter
*
* @var int
*/
protected
$counter
=
1
;
/**
* Internal container that holds the used hashes
*
* @var array
*/
protected
$usedHashes
=
[];
/**
* Injects the plugin configuration
*
* @param array $configuration
* @param string $tabId
* @return void
*/
public
function
injectPluginConfiguration
(
array
$configuration
,
$tabId
)
{
$this
->
pluginConfiguration
[
$tabId
]
=
$configuration
;
$this
->
pluginConfiguration
[
$tabId
][
'counter'
]
=
$this
->
counter
;
if
(
\in_array
(
$this
->
pluginConfiguration
[
$tabId
][
'hashName'
],
$this
->
usedHashes
))
{
$this
->
pluginConfiguration
[
$tabId
][
'hashName'
]
=
'tab'
.
$this
->
counter
.
'-'
;
}
$this
->
usedHashes
[]
=
$this
->
pluginConfiguration
[
$tabId
][
'hashName'
];
++
$this
->
counter
;
}
/**
* Injects the page renderer
*
* @param PageRenderer $pageRenderer
* @return void
*/
public
function
injectPageRenderer
(
$pageRenderer
)
{
$this
->
pageRenderer
=
$pageRenderer
;
}
/**
* Injects the content object
*
* @param ContentObjectRenderer $contentObject
* @return void
*/
public
function
injectContentObject
(
$contentObject
)
{
$this
->
contentObject
=
$contentObject
;
}
/**
* Renders the tabs
Loading