ArrayChoiceList::getOriginalKeys()

int[]|string[] getOriginalKeys() Returns the original keys of the choices. The original keys are the keys of the choice array that was passed in the "choice" option of the choice type. Note that this array may contain duplicates if the "choice" option contained choice groups: $form->add('field', 'choice', array( 'choices' => array( 'Decided' => array(true, false), 'Undecided' => array(null), ), )); In this example, the original key 0 appears t

ClickableInterface

interface ClickableInterface A clickable form element. Methods bool isClicked() Returns whether this element was clicked. Details bool isClicked() Returns whether this element was clicked. Return Value bool Whether this element was clicked

NodeDefinition::defaultValue()

NodeDefinition|$this defaultValue(mixed $value) Sets the default value. Parameters mixed $value The default value Return Value NodeDefinition|$this

ContainerAwareEventDispatcher::addListenerService()

addListenerService(string $eventName, array $callback, int $priority) Adds a service as event listener. Parameters string $eventName Event for which the listener is added array $callback The service ID of the listener service & the method name that has to be called int $priority The higher this value, the earlier an event listener will be triggered in the chain. Defaults to 0. Exceptions InvalidArgumentException

Role

class Role implements RoleInterface Role is a simple implementation of a RoleInterface where the role is a string. Methods __construct(string $role) Constructor. string|null getRole() Returns the role. Details __construct(string $role) Constructor. Parameters string $role The role name string|null getRole() Returns the role. This method returns a string representation whenever possible. When the

AbstractRendererEngine::getResourceForBlockName()

mixed getResourceForBlockName(FormView $view, string $blockName) Returns the resource for a block name. The resource is first searched in the themes attached to $view, then in the themes of its parent view and so on, until a resource was found. The type of the resource is decided by the implementation. The resource is later passed to {@link renderBlock()} by the rendering algorithm. Parameters FormView $view The view for determining the used themes First the themes attached dir

DataCollectorListener::postSetData()

postSetData(FormEvent $event) Listener for the {@link FormEvents::POSTSETDATA} event. Parameters FormEvent $event The event object

UrlValidator

class UrlValidator extends ConstraintValidator Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. PATTERN Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate(mixed $value, Constraint $constraint) Checks if the passed value is valid. Details

FileLocator

class FileLocator implements FileLocatorInterface FileLocator uses an array of pre-defined paths to find files. Methods __construct(string|array $paths = array()) Constructor. string|array locate(string $name, string|null $currentPath = null, bool $first = true) Returns a full path for a given file name. Details __construct(string|array $paths = array()) Constructor. Parameters string|array $paths A path or an array of paths where to lo

PropertyAccessorInterface

interface PropertyAccessorInterface Writes and reads values to/from an object/array graph. Methods setValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath, mixed $value) Sets the value at the end of the property path of the object graph. mixed getValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath) Returns the value at the end of the property path of the object graph. bool isWritable(object|array $objectOrArray, string|Property