CacheClassMetadataFactory

class CacheClassMetadataFactory implements ClassMetadataFactoryInterface Caches metadata using a PSR-6 implementation. Traits ClassResolverTrait Resolves a class name. Methods __construct(ClassMetadataFactoryInterface $decorated, CacheItemPoolInterface $cacheItemPool) ClassMetadataInterface getMetadataFor(string|object $value) If the method was called with the same class name (or an object of that class) before, the same metadata instance is returned. bool hasMetadataFor

ButtonType::configureOptions()

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

ButtonType

class ButtonType extends BaseType implements ButtonTypeInterface A form button. Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from BaseType buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from BaseType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. string getBl

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

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

ButtonBuilder::setType()

FormConfigBuilderInterface setType(ResolvedFormTypeInterface $type) Sets the type of the button. Parameters ResolvedFormTypeInterface $type The type of the form Return Value FormConfigBuilderInterface The configuration object

ButtonBuilder::setRequestHandler()

FormConfigBuilderInterface setRequestHandler(RequestHandlerInterface $requestHandler) Unsupported method. Parameters RequestHandlerInterface $requestHandler Return Value FormConfigBuilderInterface The configuration object Exceptions BadMethodCallException

ButtonBuilder::setRequired()

FormConfigBuilderInterface setRequired(bool $required) Unsupported method. This method should not be invoked. Parameters bool $required Return Value FormConfigBuilderInterface The configuration object Exceptions BadMethodCallException

ButtonBuilder::setPropertyPath()

FormConfigBuilderInterface setPropertyPath(null|string|PropertyPathInterface $propertyPath) Unsupported method. This method should not be invoked. Parameters null|string|PropertyPathInterface $propertyPath The property path or null if the path should be set automatically based on the form's name. Return Value FormConfigBuilderInterface The configuration object Exceptions BadMethodCallException

ButtonBuilder::setMapped()

FormConfigBuilderInterface setMapped(bool $mapped) Unsupported method. This method should not be invoked. Parameters bool $mapped Whether the form should be mapped Return Value FormConfigBuilderInterface The configuration object Exceptions BadMethodCallException