KernelInterface::locateResource()

string|array locateResource(string $name, string $dir = null, bool $first = true) Returns the file path for a given resource. A Resource can be a file or a directory. The resource name must follow the following pattern: "@BundleName/path/to/a/file.something" where BundleName is the name of the bundle and the remaining part is the relative path in the bundle. If $dir is passed, and the first segment of the path is "Resources", this method will look for a file named: $dir/<Bund

HashParser

class HashParser implements ParserInterface CSS selector hash parser shortcut. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Details SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Parameters string $source Return

PropertyAccessor::isWritable()

bool isWritable(object|array $objectOrArray, string|PropertyPathInterface $propertyPath) Returns whether a value can be written at a given property path. Whenever this method returns true, {@link setValue()} is guaranteed not to throw an exception when called with the same arguments. Parameters object|array $objectOrArray The object or array to check string|PropertyPathInterface $propertyPath The property path to check Return Value bool Whether the value can be set Exceptions

Button::createView()

FormView createView(FormView $parent = null) Creates a view. Parameters FormView $parent The parent view Return Value FormView The view

DoctrineOrmTypeGuesser

class DoctrineOrmTypeGuesser implements FormTypeGuesserInterface Methods __construct(ManagerRegistry $registry) TypeGuess|null guessType(string $class, string $property) Returns a field guess for a property name of a class. ValueGuess guessRequired(string $class, string $property) Returns a guess whether a property of a class is required. ValueGuess|null guessMaxLength(string $class, string $property) Returns a guess about the field's maximum length. ValueGuess|null gu

AbstractDumper

class AbstractDumper implements DataDumperInterface, DumperInterface Abstract mechanism for dumping a Data object. Constants DUMP_LIGHT_ARRAY DUMP_STRING_LENGTH Properties static $defaultOutput Methods __construct(callable|resource|string|null $output = null, string $charset = null, int $flags) callable|resource|string setOutput(callable|resource|string $output) Sets the output destination of the dumps. string setCharset(string $charset) Sets the default charac

RadioType

class RadioType extends AbstractType Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from AbstractType buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from AbstractType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. from AbstractType string getBlockPrefix() Returns

PropertyPathInterface::getElements()

array getElements() Returns the elements of the property path as array. Return Value array An array of property/index names

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

RepeatedTypeValidatorExtension::getExtendedType()

string getExtendedType() Returns the name of the type being extended. Return Value string The name of the type being extended