public abstract function insertType(Type $type, $typeId = null);
/** * Inserts a new content type. * * @param \eZ\Publish\SPI\Persistence\Content\Type $type * @param mixed|null $typeId * * @return mixed Type ID */ public function insertType(Type $type, $typeId = null) { try { return $this->innerGateway->insertType($type, $typeId); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }