ImagelistField
class ImagelistField extends Field implements FieldInterface, ListFieldInterface, RawPersistable, Iterator (View source)
Traits
Constants
TYPE |
|
Properties
$name | from Field |
Methods
No description
Returns the value, where the contained fields are "hydrated" as actual Image Fields. For example, for iterating in the frontend
Returns the default value option
like getValue() but returns single value for single value fields
Used in SelectField, to distinguish between selects for "a list of items" and "select from a list of Content"
Used in TranslatableInterface, to locate the translation entity Bolt\Entity\FieldTranslation
Makes ListFieldInterface fields |length filter return the number of elements in the field
Makes ListFieldInterface fields .length attribute return the number of elements in the field
Returns the value, as is in the database. Useful for processing, like editing in the backend, where the results are to be serialised
Returns the value, where the contained Image fields are seperately casted to arrays, including the "extras"
Details
in
Field at line 77
string
__toString()
in
Field at line 88
__call(string $key = '', array $arguments = [])
in
Field at line 103
int|null
getId()
in
Field at line 111
FieldType
getDefinition()
in
Field at line 130
void
setDefinition($name, Collection $definition)
in
Field at line 135
string
getName()
in
Field at line 140
Field
setName(string $name)
in
Field at line 147
get($key)
getApiValue()
array|null
getValue()
Returns the value, where the contained fields are "hydrated" as actual Image Fields. For example, for iterating in the frontend
getDefaultValue()
Returns the default value option
in
Field at line 201
bool
isNew()
in
Field at line 211
array|mixed|null
getParsedValue()
like getValue() but returns single value for single value fields
in
Field at line 229
string|array|Markup
getTwigValue()
in
Field at line 263
Field
set(string $key, $value)
in
Field at line 270
Field
setValue($value)
in
Field at line 278
int|null
getSortorder()
in
Field at line 283
Field
setSortorder(int $sortorder)
in
Field at line 290
Field
setLocale(string|null $locale)
in
Field at line 297
string|null
getLocale()
in
Field at line 302
int|null
getVersion()
in
Field at line 307
Field
setVersion(int|null $version)
in
Field at line 314
Content|null
getContent()
in
Field at line 319
Field
setContent(Content|null $content)
in
Field at line 326
bool
hasParent()
in
Field at line 331
Field|null
getParent()
in
Field at line 336
Field
setParent(Field|null $parent)
in
Field at line 343
Field
setLabel(string $label)
in
Field at line 353
string
getType()
in
Field at line 362
bool
isContentSelect()
Used in SelectField, to distinguish between selects for "a list of items" and "select from a list of Content"
in
Field at line 370
static string
getTranslationEntityClass()
Used in TranslatableInterface, to locate the translation entity Bolt\Entity\FieldTranslation
in
Field at line 378
bool
isTranslatable()
int
count()
Makes ListFieldInterface fields |length filter return the number of elements in the field
int
length()
Makes ListFieldInterface fields .length attribute return the number of elements in the field
Field
current()
void
next()
int
key()
bool
valid()
void
rewind()
array
getRawValue()
Returns the value, as is in the database. Useful for processing, like editing in the backend, where the results are to be serialised
getJsonValue()
Returns the value, where the contained Image fields are seperately casted to arrays, including the "extras"