/** * @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; }
/** * @param BuildableInterface $container * @param FormState $state * @param OptionsProvider $provider */ public function buildOptions(BuildableInterface $container, FormState $state, OptionsProvider $provider) { $this->buildGroup($provider->getOptions(), $container, $state); }