protected function editInTemplateContext ($template, $field, callable $callback)
	{
		$template = $this->getTemplate($template);
		$fieldgroup = $template->fieldgroup;
		$field = $this->getField($field);

		$context = $fieldgroup->getField($field->name, true);
		$callback($context, $template);
		$this->fields->saveFieldgroupContext($context, $fieldgroup);
	}
protected function editInTemplateContext ($template, $field, callable $callback)
	{
		$template = $this->getTemplate($template);
		$fieldgroup = $template->fieldgroup;
		$field = $this->getField($field);

		$context = $fieldgroup->getField($field->name, true);
		$callback($context, $template);
		$this->fields->saveFieldgroupContext($context, $fieldgroup);
	}
protected function editInTemplateContext ( $ template , $ field , callable $ callback ) { $ template = $ this -> getTemplate ( $ template ) ; $ fieldgroup = $ template -> fieldgroup ; $ field = $ this -> getField ( $ field ) ; $ context = $ fieldgroup -> getField ( $ field -> name , true ) ; $ callback ( $ context , $ template ) ; $ this -> fields -> saveFieldgroupContext ( $ context , $ fieldgroup ) ; }
Edit a field in template context

@param Template|string $template
@param Field|string    $field
@param callable        $callback
Edit a field in template context