src/BackendIntegration/InputScreen/InputScreen.php
public function getMetaModel()
    {
        if (null === $this->data) {
            throw new \RuntimeException(
                'No input screen data available, did you forget to define the view combinations?'
            );
        }

        $factory   = $this->container->getFactory();
        $metaModel = $factory->getMetaModel($factory->translateIdToMetaModelName($this->data['pid']));

        if ($metaModel === null) {
            throw new \RuntimeException('Could not retrieve MetaModel with id ' . $this->data['pid']);
        }

        return $metaModel;
    }
public function getMetaModel()
    {
        if (null === $this->data) {
            throw new \RuntimeException(
                'No input screen data available, did you forget to define the view combinations?'
            );
        }

        $factory   = $this->container->getFactory();
        $metaModel = $factory->getMetaModel($factory->translateIdToMetaModelName($this->data['pid']));

        if ($metaModel === null) {
            throw new \RuntimeException('Could not retrieve MetaModel with id ' . $this->data['pid']);
        }

        return $metaModel;
    }
{@inheritDoc}

@throws \RuntimeException When the instance could not be retrieved.