SurrogateInterface::handle()

string handle(HttpCache $cache, string $uri, string $alt, bool $ignoreErrors) Handles a Surrogate from the cache. Parameters HttpCache $cache An HttpCache instance string $uri The main URI string $alt An alternative URI bool $ignoreErrors Whether to ignore errors or not Return Value string Exceptions RuntimeException Exception

SurrogateInterface::getName()

string getName() Returns surrogate name. Return Value string

SurrogateInterface::createCacheStrategy()

ResponseCacheStrategyInterface createCacheStrategy() Returns a new cache strategy instance. Return Value ResponseCacheStrategyInterface A ResponseCacheStrategyInterface instance

SurrogateInterface::addSurrogateControl()

addSurrogateControl(Response $response) Adds HTTP headers to specify that the Response needs to be parsed for Surrogate. This method only adds an Surrogate HTTP header if the Response has some Surrogate tags. Parameters Response $response A Response instance

SurrogateInterface::addSurrogateCapability()

addSurrogateCapability(Request $request) Adds Surrogate-capability to the given Request. Parameters Request $request A Request instance

SurrogateInterface

interface SurrogateInterface Methods string getName() Returns surrogate name. ResponseCacheStrategyInterface createCacheStrategy() Returns a new cache strategy instance. bool hasSurrogateCapability(Request $request) Checks that at least one surrogate has Surrogate capability. addSurrogateCapability(Request $request) Adds Surrogate-capability to the given Request. addSurrogateControl(Response $response) Adds HTTP headers to specify that the Response needs to be parsed fo

SubmitTypeValidatorExtension

class SubmitTypeValidatorExtension extends BaseValidatorExtension Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from AbstractTypeExtension buildView(FormView $view, FormInterface $form, array $options) Builds the view. from AbstractTypeExtension finishView(FormView $view, FormInterface $form, array $options) Finishes the view. from AbstractTypeExtension setDefaultOptions(OptionsResolverInterface $resolver) Overrides the default options from t

SubmitType::getParent()

string|null getParent() Returns the name of the parent type. Return Value string|null The name of the parent type if any, null otherwise

SubmitType::getBlockPrefix()

string getBlockPrefix() Returns the prefix of the template block name for this type. The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile"). Return Value string The prefix of the template block name

SubmitType::buildView()

buildView(FormView $view, FormInterface $form, array $options) Builds the form view. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. A view of a form is built before the views of the child forms are built. This means that you cannot access child views in this method. If you need to do so, move your logic to {@link finishView()} instead. Parameters FormView $view The view FormInterface $form The form