Router::setContext()

setContext(RequestContext $context) Sets the request context. Parameters RequestContext $context The context

Client::setServerParameter()

setServerParameter(string $key, string $value) Sets single server parameter. Parameters string $key A key of the parameter string $value A value of the parameter

ModelType::buildForm()

buildForm(FormBuilderInterface $builder, array $options) Builds the form. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the form. Parameters FormBuilderInterface $builder The form builder array $options The options

LoggerDataCollector::getName()

string getName() Returns the name of the collector. Return Value string The collector name

Regex::getHtmlPattern()

string|null getHtmlPattern() Converts the htmlPattern to a suitable format for HTML5 pattern. Example: /^[a-z]+$/ would be converted to [a-z]+ However, if options are specified, it cannot be converted. Pattern is also ignored if match=false since the pattern should then be reversed before application. Return Value string|null

FormView::isRendered()

bool isRendered() Returns whether the view was already rendered. Return Value bool Whether this view's widget is rendered

Output::write()

write(string|array $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL) Writes a message to the output. Parameters string|array $messages The message as an array of lines or a single string bool $newline Whether to add a newline int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUTNORMAL | self::VERBOSITYNORMAL

Kernel::getStartTime()

int getStartTime() Gets the request start time (not available if debug is disabled). Return Value int The request start timestamp

Component\Form\Extension\HttpFoundation\Type

Classes FormTypeHttpFoundationExtension

ContextualValidatorInterface::validateProperty()

ContextualValidatorInterface validateProperty(object $object, string $propertyName, array|null $groups = null) Validates a property of an object against the constraints specified for this property. Parameters object $object The object string $propertyName The name of the validated property array|null $groups The validation groups to validate. If none is given, "Default" is assumed Return Value ContextualValidatorInterface This validator