FragmentHandler

class FragmentHandler Renders a URI that represents a resource fragment. This class handles the rendering of resource fragments that are included into a main resource. The handling of the rendering is managed by specialized renderers. Methods __construct(RequestStack $requestStack, array $renderers = array(), bool $debug = false) Constructor. addRenderer(FragmentRendererInterface $renderer) Adds a renderer. string|null render(string|ControllerReference $uri, string $renderer =

FragmentHandler::addRenderer()

addRenderer(FragmentRendererInterface $renderer) Adds a renderer. Parameters FragmentRendererInterface $renderer A FragmentRendererInterface instance

FormView::count()

int count() Implements \Countable. Return Value int The number of children views

FormView::getIterator()

ArrayIterator|FormView[] getIterator() Returns an iterator to iterate over children (implements \IteratorAggregate). Return Value ArrayIterator|FormView[] The iterator

FormView::isRendered()

bool isRendered() Returns whether the view was already rendered. Return Value bool Whether this view's widget is rendered

FormView::offsetGet()

FormView offsetGet(string $name) Returns a child by name (implements \ArrayAccess). Parameters string $name The child name Return Value FormView The child view

FormView::offsetExists()

bool offsetExists(string $name) Returns whether the given child exists (implements \ArrayAccess). Parameters string $name The child name Return Value bool Whether the child view exists

FormView

class FormView implements ArrayAccess, IteratorAggregate, Countable Properties array $vars The variables assigned to this view. FormView $parent The parent view. FormView[] $children The child views. Methods __construct(FormView $parent = null) bool isRendered() Returns whether the view was already rendered. FormView setRendered() Marks the view as rendered. FormView offsetGet(string $name) Returns a child by name (implements \ArrayAccess). bool offsetExists

FormUtil

class FormUtil Methods static bool isEmpty(mixed $data) Returns whether the given data is empty. Details static bool isEmpty(mixed $data) Returns whether the given data is empty. This logic is reused multiple times throughout the processing of a form and needs to be consistent. PHP's keyword empty cannot be used as it also considers 0 and "0" to be empty. Parameters mixed $data Return Value bool

FormValidator

class FormValidator 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. Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate($form, Constraint $constraint) Checks if the passed value is valid. Details initialize(Exec