Field
class Field implements FieldInterface, TranslatableInterface (View source)
Traits
Constants
TYPE |
|
Properties
$name |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
Returns the default value option
No description
like getValue() but returns single value for single value fields
No description
No description
No description
No description
No description
No description
No description
No description
No description
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
No description
Details
string
__toString()
__call(string $key = '', array $arguments = [])
int|null
getId()
FieldType
getDefinition()
void
setDefinition($name, Collection $definition)
string
getName()
Field
setName(string $name)
get($key)
getApiValue()
array|null
getValue()
getDefaultValue()
Returns the default value option
bool
isNew()
array|mixed|null
getParsedValue()
like getValue() but returns single value for single value fields
string|array|Markup
getTwigValue()
Field
set(string $key, $value)
Field
setValue($value)
int|null
getSortorder()
Field
setSortorder(int $sortorder)
Field
setLocale(string|null $locale)
string|null
getLocale()
int|null
getVersion()
Field
setVersion(int|null $version)
Content|null
getContent()
bool
hasParent()
Field|null
getParent()
Field
setLabel(string $label)
string
getType()
bool
isContentSelect()
Used in SelectField, to distinguish between selects for "a list of items" and "select from a list of Content"
static string
getTranslationEntityClass()
Used in TranslatableInterface, to locate the translation entity Bolt\Entity\FieldTranslation