File: D:/HostingSpaces/netwerkbrabant/netwerkbrabant.nl/app/KommaApp/Events/Kms/EventTabsDirector.php
<?php
namespace App\KommaApp\Events\Kms;
use App\KommaApp\Kms\Core\Sections\AbstractSectionTabsBuilder;
use App\KommaApp\Kms\Core\Sections\AbstractSectionTabsDirector;
use App\KommaApp\Kms\Core\Sections\SectionTabGroups;
use App\KommaApp\Kms\Core\Sections\SectionTabsCollectionInterface;
class EventTabsDirector 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);
$this->sectionTabBuilder->getOrCreateTab(__('kms/events.wefact'), SectionTabGroups::WeFact);
$this->sectionTabBuilder->getOrCreateTab(__('kms/events.location'), SectionTabGroups::Location);
$this->sectionTabBuilder->getOrCreateTab(__('kms/events.content'), SectionTabGroups::Content);
}
/**
* Returns a collection that holds multiple
*
* @return SectionTabsCollectionInterface
*/
function getTabsCollection(): SectionTabsCollectionInterface
{
return $this->sectionTabBuilder->getTabsCollection();
}
}