File: D:/HostingSpaces/SBogers95/rentman.io/app/Komma/Kms/Core/Sections/NoLanguageTabsDirector.php
<?php
namespace App\Komma\Kms\Core\Sections;
class NoLanguageTabsDirector extends AbstractSectionTabsDirector
{
/**
* @var AbstractSectionTabsBuilder
*/
private $sectionTabBuilder;
public function __construct(AbstractSectionTabsBuilder $sectionTabBuilder)
{
$this->sectionTabBuilder = $sectionTabBuilder;
parent::__construct($sectionTabBuilder);
}
/**
* Builds the tabs for the page section via the builder it is given.
* Creates a general tab and tabs for each current language.
*/
public function buildTabs(): void
{
$this->sectionTabBuilder->getOrCreateTab(__('kms/global.general'), SectionTabGroups::General);
}
/**
* Returns a collection that holds multiple
*
* @return SectionTabsCollectionInterface
*/
public function getTabsCollection(): SectionTabsCollectionInterface
{
return $this->sectionTabBuilder->getTabsCollection();
}
}