(non-PHPdoc)
@see Symfony\Component\Form.AbstractType::buildView()
8830
public function buildView(FormView $view, FormInterface $form, array $options)
    {
        $view->vars['configs'] = $options['configs']; 
        
        // Adds a custom block prefix
        array_splice(
            $view->vars['block_prefixes'],
            array_search($this->getName(), $view->vars['block_prefixes']),
            0,
            'thrace_select2'
        );
    }
625569
public function buildTemplateMessage($template, $viewParams = array(), $layout = null)
    {
        if ($layout === null)
            $layout = $this->defaultLayout;
        $method = 'buildTemplateMessage_' . $this->templateType;
        if (!method_exists($this, $method))
            $this->templateType = 'php';
        return call_user_func_array(array($this, $method), array($template, $viewParams, $layout));
    }
1105739
public function buildForm(FormBuilderInterface $builder, array $options): void
    {
        $resource = $options['data'];
        $builder
            ->add('media', MediaType::class, [
                'label' => 'resource.form.file',
                'provider' => 'sonata.media.provider.file',
                'context' => 'default',
                'translation_domain' => BkstgResourceBundle::TRANSLATION_DOMAIN,
            ])
            ->add('name', TextType::class, [
                'label' => 'resource.form.name',
            ])
            ->add('description', CKEditorType::class, [
                'label' => 'resource.form.description',
                'config' => ['toolbar' => 'basic'],
                'required' => false,
            ])
            ->add('active', ChoiceType::class, [
                    // Show "unpublished" instead of active.
                    'choice_loader' => new CallbackChoiceLoader(function () use ($resource) {
                        yield 'resource.form.status_choices.active' => true;
                        if (!$resource->isPublished()) {
                            yield 'resource.form.status_choices.unpublished' => false;
                        } else {
                            yield 'resource.form.status_choices.archived' => false;
                        }
                    }),
                    'label' => 'resource.form.status',
            ])
            ->add('pinned', CheckboxType::class, [
                'label' => 'resource.form.pinned',
                'required' => false,
            ])
        ;
    }
20778
public function buildView(FormView $view, FormInterface $form, array $options)
    {
        $parentData = $form->getParent()->getData();
        if ($parentData !== null) {
            $accessor = PropertyAccess::getPropertyAccessor();

            // set an "image_url" variable that will be available when rendering this field
            $url = $accessor->getValue($parentData, $options['image_path']);
            if ($url !== null) {
                $view->vars['image_url'] = $url;
            }
        }

        if (empty($view->vars['image_url']) && $options['no_image_placeholder'] !== null) {
            $view->vars['image_url'] = $options['no_image_placeholder'];
        }

        $view->vars['gaufrette'] = $options['gaufrette'];
        $view->vars['image_alt'] = $options['image_alt'];
        $view->vars['image_width'] = $options['image_width'];
        $view->vars['image_height'] = $options['image_height'];
    }
1256865
public function build()
    {
        // load filter
        // 1. App/Controller/filter.yml
        // 2. App/Controller/foo.filter.yml
        $filters = $this->controller->getFilters();
        for ($i = 0; $i < count($filters); $i++) {
            $this->loadFilter($filters[$i], $i !== count($filters) - 1);
        }

        // action filter is already last.
        if (! $this->has_action_filter) {
            $this->addFilter('Action');
        } else {
            $action = null;
            $names = array();
            foreach ($this->filter_names as $name) {
                if (strtolower($name) === 'action') {
                    $action = $name;
                } else {
                    $names[] = $name;
                }
            }
            $names[] = $action;
            $this->filter_names = $names;
        }
    }
152890
public function buildView(FormView $view, FormInterface $form, array $options)
    {
        if ($form->get('content')->isDisabled()) {
            $form->get('content')->addError(new FormError('calendar.error.all_calendars_selected'));
        } elseif (count($this->choices) == 0) {
            $form->get('content')->addError(new FormError('calendar.error.no_calendars_found'));
        }
    }
331068
public function build()
    {
        $view = $this->getPostsListView();

        $postsPerPage = @$this->viewsData['postsPerPage'] ?: 5;

        $this->pagesData = array_chunk($this->viewsData['blogPosts'], $postsPerPage);

        foreach ($this->pagesData as $pageIndex => $posts) {
            $this->buildPage($pageIndex, $view, $posts);
        }
    }
637862
public function build(){

        $html = '';
        if ($this->isBuildFormElement == true){
            $html .= $this->buildHeader();
        }

        $html .= $this->buildElements();

        if ($this->isBuildFormElement == true){
            $html .= "</form>";
        }

        return $html;
    }
781648
public function build()
    {
        parent::build();

        $value = $this->validator->arrayGet($this->suppliedOptions, 'value', true);

        //we need to set the value to 'false' when it is falsey so it plays nicely with select2
        if (!$value && $value !== '') {
            $this->suppliedOptions['value'] = 'false';
        }
    }
802039
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $this->buildValuesForm($builder, $options);
        $this->buildDataForm($builder, $options);

        $builder->addEventListener(
            FormEvents::POST_SUBMIT,
            function (FormEvent $event) {
                $data = $event->getData();
                if ($data instanceof DataInterface) {
                    $data->setUpdatedAt(new \DateTime());
                }
            }
        );
    }
74455
public function compile(JsUtils $js=NULL, &$view=NULL) {
		if (isset($js)) {
			$this->formElementsPrefix=$js->config()->getVar("formElementsPrefix");
			foreach ( $this->futureElements as $futureElement ) {
				$futureElementValue=$this->getPrefix($futureElement);
				$futureElementValues=explode("_", $futureElementValue);
				switch($futureElementValues [0]) {
					case "input":
						$control=new HtmlInput($futureElement);
						$control->setClass("form-control");
						$control->setLabel($this->getPart($futureElement));
						break;
					case "checkbox":
						$control=new HtmlInputCheckbox($futureElement);
						$control->setLabel($this->getPart($futureElement), false);
						break;
					case "radio":
						$name=$this->getPart($futureElement);
						$label=$this->getPart($futureElement, 2);
						$control=new HtmlInputRadio($futureElement);
						$control->setProperty("name", strtolower($name));
						$control->setLabel($label, false);
						break;
					case "select":
						$control=new HtmlSelect($futureElement,"");
						$control->setProperty("size", $futureElementValues [1]);
						$control->setClass("form-control");
						break;
					default:
						$control=new HtmlInput($futureElement);
						$control->setClass("form-control");
						$control->setLabel($this->getPart($futureElement));
						break;
				}
				$this->addElement($control);
			}
		}
		foreach ( $this->formGroups as $group ) {
			$this->addContent($group);
		}
		return parent::compile($js, $view);
	}
628019
public function build($view = '')
    {
        if ($this->output != '') return;
        ($view == '') and $view = 'rapyd::datagrid';
        parent::build();

        Persistence::save();

        foreach ($this->data as $tablerow) {

            $row = new Row($tablerow);

            foreach ($this->columns as $column) {

                $cell = new Cell($column->name);
                $sanitize = (count($column->filters) || $column->cell_callable) ? false : true;
                $value = $this->getCellValue($column, $tablerow, $sanitize);
                $cell->value($value);
                $cell->parseFilters($column->filters);
                if ($column->cell_callable) {
                    $callable = $column->cell_callable;
                    $cell->value($callable($cell->value, $tablerow));
                }
                $row->add($cell);
            }

            if (count($this->row_callable)) {
                foreach ($this->row_callable as $callable) {
                    $callable($row);
                }
            }
            $this->rows[] = $row;
        }
        $this->output = \View::make($view, array('dg' => $this, 'buttons'=>$this->button_container, 'label'=>$this->label))->render();
        return $this->output;
    }
1039471
public function build(string $viewName, $viewTemplateFile = '')
    {
        if (!$viewName) {
            throw new ViewException('No view name was selected');
        }

        $viewFactory = $this->getViewFactory();
        /**
         * @var AbstractView $view
         */
        $view = $viewFactory->make($viewName);
        $view->setConfigVariable('templateFile', $viewTemplateFile);

        return $view;
    }
719692
public function build()
	{
		$formMapper = $this->getMapper();
		$model      = $this->getModel();
		$primaryKey = (new $model)->getKeyName();

		/**
		 * Empty form
		 */
		$result = new FormResult();
		if ($this->getIdentifier() === null) {
			foreach ($formMapper->getFields() as $field) {
				$clone = clone $field;
				$name  = $clone->getName();

				// Is this a multiple field?
				if ($clone->isMultiple()) {
					$clone->setValue(['']);
				}

				$clone->setContext(BaseField::CONTEXT_FORM);
				$result->addField($name, $clone);
			}

			$this->setResult($result);
			return;
		}

		$items = $model::with([]);

		$items->where($primaryKey, $this->getIdentifier());
		$item = $items->first();

		// modifyModelItem hook
		if (method_exists($this->getMapper()->getAdmin(), 'modifyModelItem')) {
			$item = $this->getMapper()->getAdmin()->modifyModelItem($item);
		}

		$result = new FormResult;
		$result->setIdentifier($item->{$primaryKey});

		foreach ($formMapper->getFields() as $field) {
			$clone = clone $field;
			$name  = $clone->getName();
			$value = $item->{$name};

			if ($clone->hasBefore()) {
				$before = $clone->getBefore();

				if ($before instanceof Closure) {
					$value = $before($value);
				} else {
					$value = $before;
				}
			}

			// Is this a multiple field?
			if ($clone->isMultiple()) {
				$value = Value::decode(Config::get('bauhaus::admin.multiple-serializer'), $value);
			}

			$clone
				->setContext(BaseField::CONTEXT_FORM)
				->setValue($value);

			$result->addField($name, $clone);
		}

		$this->setResult($result);
	}
848268
public function view($buildId)
    {
        try {
            $build = BuildFactory::getBuildById($buildId);
        } catch (\Exception $ex) {
            $build = null;
        }

        if (empty($build)) {
            throw new NotFoundException(Lang::get('build_x_not_found', $buildId));
        }

        $this->view->plugins  = $this->getUiPlugins();
        $this->view->build    = $build;
        $this->view->data     = $this->getBuildData($build);

        $this->layout->title = Lang::get('build_n', $buildId);
        $this->layout->subtitle = $build->getProjectTitle();

        switch ($build->getStatus()) {
            case 0:
                $this->layout->skin = 'blue';
                break;

            case 1:
                $this->layout->skin = 'yellow';
                break;

            case 2:
                $this->layout->skin = 'green';
                break;

            case 3:
                $this->layout->skin = 'red';
                break;
        }

        $rebuild = Lang::get('rebuild_now');
        $rebuildLink = PHPCI_URL . 'build/rebuild/' . $build->getId();

        $delete = Lang::get('delete_build');
        $deleteLink = PHPCI_URL . 'build/delete/' . $build->getId();

        $actions = "<a class=\"btn btn-default\" href=\"{$rebuildLink}\">{$rebuild}</a> ";

        if ($this->currentUserIsAdmin()) {
            $actions .= " <a class=\"btn btn-danger\" href=\"{$deleteLink}\">{$delete}</a>";
        }

        $this->layout->actions = $actions;
    }
992247
public function buildView(FormView $view, FormInterface $form, array $options)
    {   
        $data = $form->getData();
        $view->vars['configs'] = array_merge(array(
            'dependent_value' => isset($data[$options['second_name']]) ? $data[$options['second_name']] : null
        ), $options['configs']);
        
    }
1056184
private function generateView($view)
    {
        return $this->indenter
            ->indent(view('scaffold-interface::template.views.'.$this->parser->getTemplate().'.'.$view,
                ['parser' => $this->parser, 'dataSystem' => $this->dataSystem])->render());
    }