* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Grid\Column\Type\Attribute; use PrestaShop\PrestaShop\Core\Grid\Column\AbstractColumn; use Symfony\Component\OptionsResolver\OptionsResolver; /** * Defines column which renders a block filled with color */ final class AttributeColorColumn extends AbstractColumn { /** * {@inheritdoc} */ public function getType() { return 'attribute_color'; } /** * {@inheritdoc} */ protected function configureOptions(OptionsResolver $resolver) { parent::configureOptions($resolver); $resolver ->setRequired([ 'field', ]) ->setAllowedTypes('field', 'string') ; } }