コード例 #1
0
ファイル: AbstractFilterType.php プロジェクト: ekyna/table
 /**
  * {@inheritdoc}
  */
 public function buildTableFilter(TableConfig $config, $name, array $options = [])
 {
     $resolver = new OptionsResolver();
     $this->configureOptions($resolver);
     $options['name'] = $name;
     $options['full_name'] = sprintf('%s_%s', $config->getName(), $name);
     $resolvedOptions = $resolver->resolve($options);
     $config->addFilter($resolvedOptions);
 }