StringUtils deprecated::equals()

static bool equals(string $knownString, string $userInput) Compares two strings. This method implements a constant-time algorithm to compare strings. Regardless of the used implementation, it will leak length information. Parameters string $knownString The string of known length to compare against string $userInput The string that the user can control Return Value bool true if the two strings are the same, false otherwise

FormHelper::widget()

string widget(FormView $view, array $variables = array()) Renders the HTML for a given view. Example usage: <?php echo $view['form']->widget($form) ?> You can pass options during the call: <?php echo $view['form']->widget($form, array('attr' => array('class' => 'foo'))) ?> <?php echo $view['form']->widget($form, array('separator' => '+++++')) ?> Parameters FormView $view The view for which to render the widget array $variables Additional v

CachingFactoryDecorator::generateHash()

static string generateHash(mixed $value, string $namespace = '') Generates a SHA-256 hash for the given value. Optionally, a namespace string can be passed. Calling this method will the same values, but different namespaces, will return different hashes. Parameters mixed $value The value to hash string $namespace Optional. The namespace Return Value string The SHA-256 hash

FormHelper::start()

string start(FormView $view, array $variables = array()) Renders the form start tag. Example usage templates: <?php echo $view['form']->start($form) ?>> Parameters FormView $view The view for which to render the start tag array $variables Additional variables passed to the template Return Value string The HTML markup

Translator::nodeToXPath()

XPathExpr nodeToXPath(NodeInterface $node) Parameters NodeInterface $node Return Value XPathExpr Exceptions ExpressionErrorException

LazyLoadingFragmentHandler::render()

string|null render(string|ControllerReference $uri, string $renderer = 'inline', array $options = array()) Renders a URI and returns the Response content. Available options: ignore_errors: true to return an empty string in case of an error Parameters string|ControllerReference $uri A URI as a string or a ControllerReference instance string $renderer The renderer name array $options An array of options Return Value string|null The Response content or null when the Response is s

EmailType::getParent()

string|null getParent() Returns the name of the parent type. Return Value string|null The name of the parent type if any, null otherwise

InputOption::setDefault()

setDefault(mixed $default = null) Sets the default value. Parameters mixed $default The default value Exceptions LogicException When incorrect default value is given

HttpUtils::generateUri()

string generateUri(Request $request, string $path) Generates a URI, based on the given path or absolute URL. Parameters Request $request A Request instance string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) Return Value string An absolute URL Exceptions LogicException

SplCaster::castObjectStorage()

static castObjectStorage(SplObjectStorage $c, array $a, Stub $stub, $isNested) Parameters SplObjectStorage $c array $a Stub $stub $isNested