private function _getCategoryIdOfFieldId($fieldId, tubepress_spi_options_ui_FieldProviderInterface $fieldProvider) { $map = $fieldProvider->getCategoryIdsToFieldIdsMap(); foreach ($map as $categoryId => $fieldIds) { if (in_array($fieldId, $fieldIds)) { return $categoryId; } } throw new RuntimeException(sprintf('Unable to find original category for field %s', $fieldId)); }
/** * {@inheritdoc} */ public function fieldsShouldBeInSeparateBoxes() { return $this->_delegate->fieldsShouldBeInSeparateBoxes(); }