public function DataTypePluginBase::isDefault in Search API 8
Determines whether this data type is a default data type.
Default data types are provided by the Search API module itself and have to be supported by all backends. They therefore are the only ones that can be used as a fallback for other data types, and don't need to have a fallback type themselves.
Return value
bool TRUE if the data type is a default type, FALSE otherwise.
Overrides DataTypeInterface::isDefault
File
- src/
DataType/ DataTypePluginBase.php, line 69
Class
- DataTypePluginBase
- Defines a base class from which other data type classes may extend.
Namespace
Drupal\search_api\DataTypeCode
public function isDefault() {
return !empty($this->pluginDefinition['default']);
}