eZ\Publish\Core\SignalSlot\SectionService::createSection PHP Метод

createSection() публичный Метод

Creates the a new Section in the content repository.
public createSection ( eZ\Publish\API\Repository\Values\Content\SectionCreateStruct $sectionCreateStruct ) : eZ\Publish\API\Repository\Values\Content\Section
$sectionCreateStruct eZ\Publish\API\Repository\Values\Content\SectionCreateStruct
Результат eZ\Publish\API\Repository\Values\Content\Section The newly create section
    public function createSection(SectionCreateStruct $sectionCreateStruct)
    {
        $returnValue = $this->service->createSection($sectionCreateStruct);
        $this->signalDispatcher->emit(new CreateSectionSignal(array('sectionId' => $returnValue->id)));
        return $returnValue;
    }