CsrfExtension

class CsrfExtension extends AbstractExtension This extension protects forms by using a CSRF token. Methods FormTypeInterface getType(string $name) Returns a type by name. from AbstractExtension bool hasType(string $name) Returns whether the given type is supported. from AbstractExtension FormTypeExtensionInterface[] getTypeExtensions(string $name) Returns the extensions for the given type. from AbstractExtension bool hasTypeExtensions(string $name) Returns whether this extens

FormRendererEngineInterface::setTheme()

setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. Parameters FormView $view The view to assign the theme(s) to mixed $themes The theme(s). The type of these themes is open to the implementation.

ResolvedFormType::buildForm()

buildForm(FormBuilderInterface $builder, array $options) Configures a form builder for the type hierarchy. Parameters FormBuilderInterface $builder The builder to configure array $options The options used for the configuration

RedisProfilerStorage deprecated::find()

array find(string $ip, string $url, string $limit, string $method, int|null $start = null, int|null $end = null) Finds profiler tokens for the given criteria. Parameters string $ip The IP string $url The URL string $limit The maximum number of tokens to return string $method The request method int|null $start The start date to search from int|null $end The end date to search to Return Value array An array of tokens

MockArraySessionStorage::setMetadataBag()

setMetadataBag(MetadataBag $bag = null) Sets the MetadataBag. Parameters MetadataBag $bag

AbstractCloner

class AbstractCloner implements ClonerInterface AbstractCloner implements a generic caster mechanism for objects and resources. Properties static $defaultCasters Methods __construct(array $casters = null) addCasters(array $casters) Adds casters for resources and objects. setMaxItems(int $maxItems) Sets the maximum number of items to clone past the first level in nested structures. setMaxString(int $maxString) Sets the maximum cloned length for strings. Data clo

ServiceReferenceGraphNode::getInEdges()

array getInEdges() Returns the in edges. Return Value array The in ServiceReferenceGraphEdge array

NullContext::getBasePath()

string getBasePath() Gets the base path. Return Value string The base path

JsonEncode::encode()

scalar encode(mixed $data, string $format, array $context = array()) Encodes PHP data to a JSON string. {@inheritdoc} Parameters mixed $data Data to encode string $format Format name array $context options that normalizers/encoders have access to. Return Value scalar

CollectionInterface

interface CollectionInterface implements Countable, IteratorAggregate, ArrayAccess Methods Entry[] toArray() Details Entry[] toArray() Return Value Entry[]