protected function getStorageGateway() { if (!$this->hasStorageGateway()) { throw new RuntimeException('Missing storage gateway for Page field type.'); } return $this->storageGateway; }