Ejemplo n.º 1
0
 /**
  * @return array
  */
 public function getOptions()
 {
     if (is_null($this->compiledOptions)) {
         if (is_null($this->optionsProvider)) {
             return $this->compiledOptions = array();
         }
         $this->compiledOptions = $this->optionsProvider->getOptions();
     }
     return $this->compiledOptions;
 }
Ejemplo n.º 2
0
 /**
  * @param BuildableInterface $container
  * @param FormState $state
  * @param OptionsProvider $provider
  */
 public function buildOptions(BuildableInterface $container, FormState $state, OptionsProvider $provider)
 {
     $this->buildGroup($provider->getOptions(), $container, $state);
 }