public function SearchApiNumeric::init in Search API 8
Initialize the plugin.
Parameters
\Drupal\views\ViewExecutable $view: The view object.
\Drupal\views\Plugin\views\display\DisplayPluginBase $display: The display handler.
array $options: The options configured for this plugin.
Overrides FieldPluginBase::init
File
- src/
Plugin/ views/ field/ SearchApiNumeric.php, line 27
Class
- SearchApiNumeric
- Displays numeric data.
Namespace
Drupal\search_api\Plugin\views\fieldCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
// In case we act as the fallback handler for an entity field, our
// submitOptionsForm() method won't be called, which means the
// "format_plural_string" option won't be saved correctly. Fix that here.
if (isset($options['format_plural_values'])) {
$options['format_plural_string'] = implode(PoItem::DELIMITER, $options['format_plural_values']);
}
parent::init($view, $display, $options);
}