/** * Returns a subcontent instance by its type and value, FALSE if not found. * * @param string $type The classname of the subcontent * @param string $value The value of the subcontent (uid) * * @return \BackBee\ClassContent\AbstractClassContent|FALSE */ protected function getContentByDataValue($type, $value) { if (class_exists($type) && null !== $value) { $index = 0; foreach ($this->_subcontent as $subcontent) { $this->subcontentmap[$subcontent->getUid()] = $index++; if ($subcontent->getUid() === $value) { return $subcontent; break; } } } return parent::getContentByDataValue($type, $value); }