CacheClassMetadataFactory::getMetadataFor()

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. If the factory was configured with a cache, this method will first look for an existing metadata instance in the cache. If an existing instance is found, it will be returned without further ado. Otherwise, a new metadata instance is created. If the factory was configured with a loader, the metad

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

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

ButtonType::configureOptions()

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

ButtonBuilder::setRequestHandler()

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

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