KeywordsField
class KeywordsField extends AbstractField (View source)
Properties
protected array | $data | The current search data. |
from AbstractField |
protected array | $requestVariables | The list of all the request variables. |
|
protected bool | $isLoaded | Determines whether the data is loaded into the field. If this is true, loadFromRequest will not repopulate from request. |
from AbstractField |
Methods
string
renderSearchField()
Generates the HTML for the search form (or an empty string if search is not supported).
denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = [])
No description
from
AbstractField
__construct(string|null $keywords = null)
Initialize the instance.
string
getKey()
Get the field key.
string
getDisplayName()
Get the field display name.
Details
string
renderSearchField()
Generates the HTML for the search form (or an empty string if search is not supported).
jsonSerialize()
{@inheritdoc}
mixed
export(SimpleXMLElement $element)
Exports the data to CIF
denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = [])
No description
setData($key, $value)
No description
mixed|null
getData(string $key)
No description
loadDataFromRequest(array $request)
Set the search criteria.
void
loadDataFromImport(SimpleXMLElement $element)
No description
__construct(string|null $keywords = null)
Initialize the instance.
string
getKey()
Get the field key.
string
getDisplayName()
Get the field display name.
filterList(ItemList $list)
Apply the filter to an ItemList instance.