EntityChoiceList deprecated::getIndicesForChoices()

array getIndicesForChoices(array $entities) deprecated deprecated since version 2.4, to be removed in 3.0. Returns the indices corresponding to the given entities. Parameters array $entities Return Value array An array of indices with ascending, 0-based numeric keys See also ChoiceListInterface

EntityChoiceList deprecated::getChoicesForValues()

array getChoicesForValues(array $values) Returns the entities corresponding to the given values. Parameters array $values An array of choice values. Not existing values in this array are ignored Return Value array An array of choices with ascending, 0-based numeric keys See also ChoiceListInterface

EntityChoiceList deprecated::getChoices()

array getChoices() Returns the list of entities. Return Value array The choices with their indices as keys See also ChoiceListInterface

EntityChoiceList deprecated::getPreferredViews()

array getPreferredViews() Returns the choice views of the preferred choices as nested array with the choice groups as top-level keys. Return Value array A nested array containing the views with the corresponding choice indices as keys on the lowest levels and the choice group names in the keys of the higher levels See also ChoiceListInterface

EngineInterface::render()

string render(string|TemplateReferenceInterface $name, array $parameters = array()) Renders a template. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance array $parameters An array of parameters to pass to the template Return Value string The evaluated template as a string Exceptions RuntimeException if the template cannot be rendered

EngineInterface::exists()

bool exists(string|TemplateReferenceInterface $name) Returns true if the template exists. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance Return Value bool true if the template exists, false otherwise Exceptions RuntimeException if the engine cannot handle the template name

EngineInterface

interface EngineInterface EngineInterface is the interface each engine must implement. All methods rely on a template name. A template name is a "logical" name for the template, and as such it does not refer to a path on the filesystem (in fact, the template can be stored anywhere, like in a database). The methods should accept any name. If the name is not an instance of TemplateReferenceInterface, a TemplateNameParserInterface should be used to convert the name to a TemplateReferenceInterfa

EngineInterface::supports()

bool supports(string|TemplateReferenceInterface $name) Returns true if this class is able to render the given template. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance Return Value bool true if this class supports the given template, false otherwise

EncoderInterface::encode()

scalar encode(mixed $data, string $format, array $context = array()) Encodes data into the given format. Parameters mixed $data Data to encode string $format Format name array $context options that normalizers/encoders have access to Return Value scalar Exceptions UnexpectedValueException

EncoderInterface::supportsEncoding()

bool supportsEncoding(string $format) Checks whether the serializer can encode to given format. Parameters string $format format name Return Value bool