src/CoreBundle/EventListener/DcGeneral/MetaModel/PasteButtonListener.php
private function hasVariants()
    {
        $metaModel = $this->factory->getMetaModel($this->providerName);

        if ($metaModel === null) {
            throw new \RuntimeException(sprintf('Could not find a MetaModels with the name %s', $this->providerName));
        }

        return $metaModel->hasVariants();
    }
private function hasVariants()
    {
        $metaModel = $this->factory->getMetaModel($this->providerName);

        if ($metaModel === null) {
            throw new \RuntimeException(sprintf('Could not find a MetaModels with the name %s', $this->providerName));
        }

        return $metaModel->hasVariants();
    }
Determines if this MetaModel instance is subject to variant handling.

@return bool true if variants are handled, false otherwise.

@throws \RuntimeException When the MetaModel can not be loaded.