eZ\Publish\Core\Persistence\Legacy\Content\Section\Handler::create PHP Method

create() public method

Create a new section.
public create ( string $name, string $identifier ) : eZ\Publish\SPI\Persistence\Content\Section
$name string
$identifier string
return eZ\Publish\SPI\Persistence\Content\Section
    public function create($name, $identifier)
    {
        $section = new Section();
        $section->name = $name;
        $section->identifier = $identifier;
        $section->id = $this->sectionGateway->insertSection($name, $identifier);
        return $section;
    }