ArrayNodeDefinition::requiresAtLeastOneElement()

ArrayNodeDefinition requiresAtLeastOneElement() Requires the node to have at least one element. This method is applicable to prototype nodes only. Return Value ArrayNodeDefinition

MetadataInterface deprecated::findConstraints()

Constraint[] findConstraints(string $group) Returns all constraints for a given validation group. Parameters string $group The validation group Return Value Constraint[] A list of constraint instances

Component\Form\ChoiceList\View

Classes ChoiceGroupView Represents a group of choices in templates. ChoiceListView Represents a choice list in templates. ChoiceView Represents a choice in templates.

ReversedTransformer::transform()

mixed transform(mixed $value) Transforms a value from the original representation to a transformed representation. This method is called on two occasions inside a form field: When the form field is initialized with the data attached from the datasource (object or array). When data from a request is submitted using {@link Form::submit()} to transform the new input data back into the renderable format. For example if you have a date field and submit '2009-10-10' you might accept th

MappingRule

class MappingRule Methods __construct(FormInterface $origin, $propertyPath, $targetPath) FormInterface getOrigin() null|FormInterface match(string $propertyPath) Matches a property path against the rule path. bool isPrefix(string $propertyPath) Matches a property path against a prefix of the rule path. FormInterface getTarget() Details __construct(FormInterface $origin, $propertyPath, $targetPath) Parameters FormInterface

ChoiceListInterface deprecated::getPreferredViews()

array getPreferredViews() Returns the choice views of the preferred choices as nested array with the choice groups as top-level keys. Example: array( 'Group 1' => array( 10 => ChoiceView object, 20 => ChoiceView object, ), 'Group 2' => array( 30 => ChoiceView object, ), ) Return Value array A nested array containing the views with the corresponding choice indices as keys on the lowest levels and the choice group names in the keys of the higher levels

Output::setFormatter()

setFormatter(OutputFormatterInterface $formatter) Sets output formatter. Parameters OutputFormatterInterface $formatter

DescriptorHelper::getName()

string getName() Returns the canonical name of this helper. Return Value string The canonical name

IntlTestHelper::require64Bit()

static require64Bit(PHPUnit_Framework_TestCase $testCase) Skips the test unless the current system has a 64bit architecture. Parameters PHPUnit_Framework_TestCase $testCase

MockArraySessionStorage::getBag()

SessionBagInterface getBag(string $name) Gets a SessionBagInterface by name. Parameters string $name Return Value SessionBagInterface Exceptions InvalidArgumentException If the bag does not exist