DestinationPicker
class DestinationPicker (View source)
Properties
| protected Application | $app | ||
| protected Form | $formService | ||
| protected Request | $request | ||
| protected PickerInterface[] | $registeredPickers | List of registered destination picker.  | 
                
Methods
                    $this
                
                
                
            
                    $this
                
                
                    registerPickers(array $pickers)
        
                                            
                
            Register multiple pickers.
                    $this
                
                
                    unregisterPicker(string $handle)
        
                                            
                
            Unregister a registered picker.
                    PickerInterface|null
                
                
                    getPicker(string $handle)
        
                                            
                
            Get a registered picker given its handle.
                    getRegisteredPickers()
        
                                            
                
            Get the list of currently registered pickers.
                    string
                
                
                    generate(string $key, array $pickers, string|null $currentPickerHandle = null, mixed|null $currentValue = null)
        
                                            
                
            Generate the HTML that renders the destination picker.
                    string[]|array|null[]
                
                
                    decode(string $key, array $pickers, ArrayAccess $errors = null, string|null $fieldDisplayName = null, array $data = null)
        
                                            
                
            Parse and validate the data received in POST.
                    array[]
                
                
                    getHandlesWithOptions(array $pickers)
        
                                            
                
            No description
                    string[]
                
                
                    buildWhichSelector(string $key, array $pickerHandlesWithOptions, string|null $currentHandler)
        
                                            
                
            No description
Details
        
                            
    __construct(Application $app, Form $formService, Request $request)
        
    
    Initialize the instance.
        
                            $this
    registerPicker(string $handle, PickerInterface $picker)
        
    
    Register a new destination picker.
        
                            $this
    registerPickers(array $pickers)
        
    
    Register multiple pickers.
        
                            $this
    unregisterPicker(string $handle)
        
    
    Unregister a registered picker.
        
                            PickerInterface|null
    getPicker(string $handle)
        
    
    Get a registered picker given its handle.
        
                            PickerInterface[]
    getRegisteredPickers()
        
    
    Get the list of currently registered pickers.
        
                            string
    generate(string $key, array $pickers, string|null $currentPickerHandle = null, mixed|null $currentValue = null)
        
    
    Generate the HTML that renders the destination picker.
        
                            string[]|array|null[]
    decode(string $key, array $pickers, ArrayAccess $errors = null, string|null $fieldDisplayName = null, array $data = null)
        
    
    Parse and validate the data received in POST.
        
                    protected        array[]
    getHandlesWithOptions(array $pickers)
        
    
    No description
        
                    protected        string[]
    buildWhichSelector(string $key, array $pickerHandlesWithOptions, string|null $currentHandler)
        
    
    No description