class DummyFieldProperty in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/search_api/processor/Property/DummyFieldProperty.php \Drupal\search_api_solr\Plugin\search_api\processor\Property\DummyFieldProperty
- 8.2 src/Plugin/search_api/processor/Property/DummyFieldProperty.php \Drupal\search_api_solr\Plugin\search_api\processor\Property\DummyFieldProperty
Defines a "dummy field" property.
Hierarchy
- class \Drupal\search_api_solr\Plugin\search_api\processor\Property\DummyFieldProperty extends \Drupal\search_api\Processor\ConfigurablePropertyBase uses StringTranslationTrait
Expanded class hierarchy of DummyFieldProperty
See also
\Drupal\search_api_solr\Plugin\search_api\processor\DummyFields
1 file declares its use of DummyFieldProperty
- DummyFields.php in src/
Plugin/ search_api/ processor/ DummyFields.php
File
- src/
Plugin/ search_api/ processor/ Property/ DummyFieldProperty.php, line 15
Namespace
Drupal\search_api_solr\Plugin\search_api\processor\PropertyView source
class DummyFieldProperty extends ConfigurablePropertyBase {
use StringTranslationTrait;
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return [
'dummy_value' => 'dummy',
];
}
/**
* {@inheritdoc}
*/
public function buildConfigurationForm(FieldInterface $field, array $form, FormStateInterface $form_state) {
$configuration = $field
->getConfiguration();
$form['dummy_value'] = [
'#type' => 'textfield',
'#title' => $this
->t('Dummy value'),
'#description' => $this
->t('The value to be set initially on the dummy field.'),
'#default_value' => $configuration['dummy_value'],
'#required' => TRUE,
];
return $form;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DummyFieldProperty:: |
public | function | ||
DummyFieldProperty:: |
public | function | ||
StringTranslationTrait:: |
protected | property | The string translation service. | 4 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |