BaseNode::hasAttribute()

hasAttribute($key) Parameters $key

ImageValidator

class ImageValidator extends FileValidator Validates whether a value is a valid image file and is valid against minWidth, maxWidth, minHeight and maxHeight constraints. 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. KB_BYTES MB_BYTES KIB_BYTES MIB_BYTES Methods initialize(ExecutionContextInterface $context) Initializes the constra

ContainerBuilder::setAliases()

setAliases(array $aliases) Sets the service aliases. Parameters array $aliases An array of aliases

HashParser

class HashParser implements ParserInterface CSS selector hash parser shortcut. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Details SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Parameters string $source Return

ChoiceListInterface::getValues()

string[] getValues() Returns the values for the choices. The values are strings that do not contain duplicates. Return Value string[] The choice values

Esi::addSurrogateControl()

addSurrogateControl(Response $response) Adds HTTP headers to specify that the Response needs to be parsed for ESI. This method only adds an ESI HTTP header if the Response has some ESI tags. Parameters Response $response A Response instance

ValidatorBuilder::setMetadataFactory()

ValidatorBuilderInterface setMetadataFactory(MetadataFactoryInterface $metadataFactory) Sets the class metadata factory used by the validator. Parameters MetadataFactoryInterface $metadataFactory The metadata factory Return Value ValidatorBuilderInterface The builder object

DumperInterface::leaveHash()

leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut) Dumps while leaving an hash. Parameters Cursor $cursor The Cursor position in the dump int $type A Cursor::HASH_* const for the type of hash string $class The object class, resource type or array count bool $hasChild When the dump of the hash has child item int $cut The number of items the hash has been cut by

TranslationsCacheWarmer::isOptional()

bool isOptional() Checks whether this warmer is optional or not. Optional warmers can be ignored on certain conditions. A warmer should return true if the cache can be generated incrementally and on-demand. Return Value bool true if the warmer is optional, false otherwise

FormDataCollector::buildPreliminaryFormTree()

buildPreliminaryFormTree(FormInterface $form) Assembles the data collected about the given form and its children as a tree-like data structure. The result can be queried using {@link getData()}. Parameters FormInterface $form A root form