VariableNodeDefinition

class VariableNodeDefinition extends NodeDefinition This class provides a fluent interface for defining a node. Methods __construct(string $name, NodeParentInterface $parent = null) Constructor. from NodeDefinition NodeDefinition|$this setParent(NodeParentInterface $parent) Sets the parent node. from NodeDefinition NodeDefinition|$this info(string $info) Sets info message. from NodeDefinition NodeDefinition|$this example(string|array $example) Sets example configuration. fro

EventDispatcher::getListeners()

array getListeners(string $eventName = null) Gets the listeners of a specific event or all listeners sorted by descending priority. Parameters string $eventName The name of the event Return Value array The event listeners for the specified event, or all event listeners by event name

AbstractAdapter deprecated::ignoreUnreadableDirs()

AdapterInterface ignoreUnreadableDirs(bool $ignore = true) Parameters bool $ignore Return Value AdapterInterface Current instance

Crawler::addHtmlContent()

addHtmlContent(string $content, string $charset = 'UTF-8') Adds an HTML content to the list of nodes. The libxml errors are disabled when the content is parsed. If you want to get parsing errors, be sure to enable internal errors via libxmluseinternalerrors(true) and then, get the errors via libxmlgeterrors(). Be sure to clear errors with libxmlclear_errors() afterward. Parameters string $content The HTML content string $charset The charset

Response::mustRevalidate()

bool mustRevalidate() Returns true if the response must be revalidated by caches. This method indicates that the response must not be served stale by a cache in any circumstance without first revalidating with the origin. When present, the TTL of the response should not be overridden to be greater than the value provided by the origin. Return Value bool true if the response must be revalidated by a cache, false otherwise

TokenizerEscaping::escapeUnicodeAndNewLine()

string escapeUnicodeAndNewLine(string $value) Parameters string $value Return Value string

Request::setLocale()

setLocale(string $locale) Sets the locale. Parameters string $locale

BirthdayType::getBlockPrefix()

string getBlockPrefix() Returns the prefix of the template block name for this type. The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile"). Return Value string The prefix of the template block name

AdapterInterface deprecated::setExclude()

AdapterInterface setExclude(array $exclude) Parameters array $exclude Return Value AdapterInterface Current instance

ContainerBuilder::getDefinition()

Definition getDefinition(string $id) Gets a service definition. Parameters string $id The service identifier Return Value Definition A Definition instance Exceptions ServiceNotFoundException if the service definition does not exist