public function TextValue::getProperty in Search API 8
Retrieves a specific property of this text value.
Parameters
string $name: The property's name.
mixed $default: (optional) The default to return if the property wasn't set yet.
Return value
mixed Either the property's value, or the given $default if it wasn't set yet.
Overrides TextValueInterface::getProperty
File
- src/
Plugin/ search_api/ data_type/ value/ TextValue.php, line 117
Class
- TextValue
- Represents a single value of a fulltext field.
Namespace
Drupal\search_api\Plugin\search_api\data_type\valueCode
public function getProperty($name, $default = NULL) {
if (array_key_exists($name, $this->properties)) {
return $this->properties[$name];
}
return $default;
}