/** * Get activated * * @param Property $objProperty * @param ModelInterface $objModel * * @return Definition\SubPalette|null */ public static function getActivePropertySubPalette(Property $objProperty, ModelInterface $objModel) { $objProperty->getDataContainer(); $varValue = $objModel->getProperty($objProperty->getName()); if ($objProperty->hasSubPalette($varValue)) { return $objProperty->getSubPalette($varValue); } return null; }