public function getContentType($id) { foreach ($this->getConfigs() as $config) { if ($items = $config->getContentTypes()) { foreach ($items as $item) { if ($item->getId() === $id) { return $item; } } } } return null; }