コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerInterface $container, $data, array $options = [])
 {
     $container->clear();
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerInterface $container, $data, array $options = [])
 {
     foreach ($options as $field) {
         $container->remove($field);
     }
 }
 /**
  * @param ContainerInterface $container
  * @param string $field
  * @param string $value
  */
 protected function append(ContainerInterface $container, $field, $value)
 {
     if ($value === null) {
         return;
     }
     $value = trim($value);
     $value = preg_replace('/\\s+/u', ' ', $value);
     $container->add($field, $value);
 }
コード例 #4
0
 /**
  * @param ContainerInterface $container
  * @param string             $field
  * @param string             $value
  */
 protected function append(ContainerInterface $container, $field, $value)
 {
     $container->add($field, $value);
 }