eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\ExceptionConversion::insertSection PHP Method

insertSection() public method

Inserts a new section with $name and $identifier.
public insertSection ( string $name, string $identifier ) : integer
$name string
$identifier string
return integer The ID of the new section
    public function insertSection($name, $identifier)
    {
        try {
            return $this->innerGateway->insertSection($name, $identifier);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }