/** * Get a data container * @param string $strName * * @return DataContainer * * @throws \RuntimeException */ public static function getDataContainer($strName) { BackendBindings::loadDataContainer($strName); BackendBindings::loadLanguageFile($strName); if (!isset($GLOBALS['TL_DCA'][$strName])) { throw new \RuntimeException("DataContainer {$strName} does not exist."); } return DataContainer::getInstance($strName); }