CollectionField
class CollectionField extends Field implements FieldInterface, FieldParentInterface, ListFieldInterface, Iterator, RawPersistable (View source)
Traits
Constants
TYPE |
|
Properties
$name | from Field |
Methods
No description
No description
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
Override isTranslatable so that if one child definition has localize: true, the whole field is considered localizable.
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
No description
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()
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)
Field
setValue($fields)
in
Field at line 278
int|null
getSortorder()
in
Field at line 283
Field
setSortorder(int $sortorder)
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)
abstract 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
bool
isTranslatable()
Override isTranslatable so that if one child definition has localize: true, the whole field is considered localizable.
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