HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/centrum8a/centrum8a.com/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();
    }
}