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

ArgumentMetadataFactory

class ArgumentMetadataFactory implements ArgumentMetadataFactoryInterface Builds {see ArgumentMetadata} objects based on the given Controller. Methods __construct() ArgumentMetadata[] createArgumentMetadata(mixed $controller) Details __construct() ArgumentMetadata[] createArgumentMetadata(mixed $controller) Parameters mixed $controller The controller to resolve the arguments for Return Value Arg

RouteCollectionBuilder::addRoute()

$this addRoute(Route $route, string|null $name = null) Adds a Route object to the builder. Parameters Route $route string|null $name Return Value $this

ChoiceType::configureOptions()

configureOptions(OptionsResolver $resolver) Configures the options for this type. Parameters OptionsResolver $resolver The resolver for the options

ValidatorBuilderInterface::addMethodMappings()

ValidatorBuilderInterface addMethodMappings(array $methodNames) Enables constraint mapping using the given static methods. Parameters array $methodNames The names of the methods Return Value ValidatorBuilderInterface The builder object

DebugExtension::load()

load(array $configs, ContainerBuilder $container) Loads a specific configuration. Parameters array $configs An array of configuration values ContainerBuilder $container A ContainerBuilder instance Exceptions InvalidArgumentException When provided tag is not defined in this extension

MimeTypeGuesserInterface

interface MimeTypeGuesserInterface Guesses the mime type of a file. Methods string guess(string $path) Guesses the mime type of the file with the given path. Details string guess(string $path) Guesses the mime type of the file with the given path. Parameters string $path The path to the file Return Value string The mime type or NULL, if none could be guessed Exceptions FileNotFoundException If the file does not exist AccessDeniedException If

AbstractNormalizer::setIgnoredAttributes()

AbstractNormalizer setIgnoredAttributes(array $ignoredAttributes) Set ignored attributes for normalization and denormalization. Parameters array $ignoredAttributes Return Value AbstractNormalizer

IntlDateFormatter::localtime()

string localtime(string $value, int $position) Not supported. Parse string to a field-based time value. Parameters string $value String to convert to a time value int $position Position at which to start the parsing in $value (zero-based) If no error occurs before $value is consumed, $parsepos will contain -1 otherwise it will contain the position at which parsing ended. If $parsepos > strlen($value), the parse fails immediately. Return Value string Localtime compatible arra

ValidatorInterface::validateProperty()

ConstraintViolationListInterface 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 ConstraintViolationListInterface A list of constraint violations If the list is