/** * @param ContainerInterface $container * @param string $field */ protected function remove(ContainerInterface $container, $field) { $container->remove($field); }
/** * {@inheritdoc} */ public function build(ContainerInterface $container, $data, array $options = []) { foreach ($options as $field) { $container->remove($field); } }