SurrogateInterface::hasSurrogateCapability()

bool hasSurrogateCapability(Request $request) Checks that at least one surrogate has Surrogate capability. Parameters Request $request A Request instance Return Value bool true if one surrogate has Surrogate capability, false otherwise

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

SurrogateInterface::getName()

string getName() Returns surrogate name. Return Value string

SurrogateInterface::addSurrogateCapability()

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

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

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::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::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::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