class SearchApiDataType in Search API 8
Defines a Search API data type annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\search_api\Annotation\SearchApiDataType
Expanded class hierarchy of SearchApiDataType
See also
\Drupal\search_api\DataType\DataTypePluginManager
\Drupal\search_api\DataType\DataTypeInterface
\Drupal\search_api\DataType\DataTypePluginBase
10 classes are annotated with SearchApiDataType
- AlteringValueTestDataType in tests/
search_api_test/ src/ Plugin/ search_api/ data_type/ AlteringValueTestDataType.php - Provides a dummy data type for testing purposes.
- BooleanDataType in src/
Plugin/ search_api/ data_type/ BooleanDataType.php - Provides a boolean data type.
- DateDataType in src/
Plugin/ search_api/ data_type/ DateDataType.php - Provides a date data type.
- DecimalDataType in src/
Plugin/ search_api/ data_type/ DecimalDataType.php - Provides a decimal data type.
- IntegerDataType in src/
Plugin/ search_api/ data_type/ IntegerDataType.php - Provides an integer data type.
File
- src/
Annotation/ SearchApiDataType.php, line 17
Namespace
Drupal\search_api\AnnotationView source
class SearchApiDataType extends Plugin {
/**
* The data type plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the data type plugin.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $label;
/**
* The description of the data type.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $description;
/**
* Whether this is one of the default data types provided by the Search API.
*
* @var bool
*/
public $default = FALSE;
/**
* The ID of the fallback data type for this data type.
*
* Needs to be one of the default data types defined in the Search API itself.
*
* @var string
*/
public $fallback_type = 'string';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
SearchApiDataType:: |
public | property | Whether this is one of the default data types provided by the Search API. | |
SearchApiDataType:: |
public | property | The description of the data type. | |
SearchApiDataType:: |
public | property | The ID of the fallback data type for this data type. | |
SearchApiDataType:: |
public | property | The data type plugin ID. | |
SearchApiDataType:: |
public | property | The human-readable name of the data type plugin. |