File: D:/HostingSpaces/sdo/sdoschoonmaak.nl/app/KommaApp/Kms/Core/Sections/NoLanguageTabsDirector.php
<?php
namespace App\KommaApp\Kms\Core\Sections;
use App\KommaApp\Kms\Core\Kms;
class NoLanguageTabsDirector extends AbstractSectionTabsDirector
{
/**
* @var $sectionTabBuilder 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.
*/
function buildTabs(): void
{
$this->sectionTabBuilder->getOrCreateTab(__('kms/global.general'), SectionTabGroups::General);
}
/**
* Returns a collection that holds multiple
*
* @return SectionTabsCollectionInterface
*/
function getTabsCollection(): SectionTabsCollectionInterface
{
return $this->sectionTabBuilder->getTabsCollection();
}
}