Loading CHANGELOG.txt +2 −0 Original line number Diff line number Diff line Search API 1.x, dev (xxxx-xx-xx): --------------------------------- - #3253738 by mkalkbrenner, alexpott, drunken monkey: Fixed deprecation warnings in PHP 8.1. - #3091198 by alexpott, drunken monkey: Fixed problems on MySQL 5.6/5.7. - #3249801 by paulocs, beatrizrodrigues, drunken monkey: Fixed failing tests against Drupal HEAD. Loading modules/search_api_db/src/Plugin/search_api/backend/Database.php +7 −1 Original line number Diff line number Diff line Loading @@ -540,9 +540,15 @@ class Database extends BackendPluginBase implements PluginFormInterface { public function viewSettings() { $info = []; if ($this->configuration['database']) { $database = str_replace(':', ' > ', $this->configuration['database']); } else { $database = $this->t('None selected yet'); } $info[] = [ 'label' => $this->t('Database'), 'info' => str_replace(':', ' > ', $this->configuration['database']), 'info' => $database, ]; if ($this->configuration['min_chars'] > 1) { $info[] = [ Loading src/Item/Field.php +2 −1 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ class Field implements \IteratorAggregate, FieldInterface { /** * The human-readable label for this field. * * @var string * @var string|null */ protected $label; Loading Loading @@ -665,6 +665,7 @@ class Field implements \IteratorAggregate, FieldInterface { /** * {@inheritdoc} */ #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator($this->values); } Loading src/Item/FieldInterface.php +2 −7 Original line number Diff line number Diff line Loading @@ -153,13 +153,8 @@ interface FieldInterface extends \Traversable { /** * Retrieves this field's label. * * The field's label, contrary to the label returned by the field's data * definition, contains a human-readable representation of the full property * path. The datasource label is not included, though – use getPrefixedLabel() * for that. * * @return string * A human-readable label representing this field's property path. * @return string|null * A human-readable label for this field, or NULL if none has been set yet. */ public function getLabel(); Loading src/Item/Item.php +1 −0 Original line number Diff line number Diff line Loading @@ -455,6 +455,7 @@ class Item implements \IteratorAggregate, ItemInterface { /** * {@inheritdoc} */ #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator($this->getFields()); } Loading Loading
CHANGELOG.txt +2 −0 Original line number Diff line number Diff line Search API 1.x, dev (xxxx-xx-xx): --------------------------------- - #3253738 by mkalkbrenner, alexpott, drunken monkey: Fixed deprecation warnings in PHP 8.1. - #3091198 by alexpott, drunken monkey: Fixed problems on MySQL 5.6/5.7. - #3249801 by paulocs, beatrizrodrigues, drunken monkey: Fixed failing tests against Drupal HEAD. Loading
modules/search_api_db/src/Plugin/search_api/backend/Database.php +7 −1 Original line number Diff line number Diff line Loading @@ -540,9 +540,15 @@ class Database extends BackendPluginBase implements PluginFormInterface { public function viewSettings() { $info = []; if ($this->configuration['database']) { $database = str_replace(':', ' > ', $this->configuration['database']); } else { $database = $this->t('None selected yet'); } $info[] = [ 'label' => $this->t('Database'), 'info' => str_replace(':', ' > ', $this->configuration['database']), 'info' => $database, ]; if ($this->configuration['min_chars'] > 1) { $info[] = [ Loading
src/Item/Field.php +2 −1 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ class Field implements \IteratorAggregate, FieldInterface { /** * The human-readable label for this field. * * @var string * @var string|null */ protected $label; Loading Loading @@ -665,6 +665,7 @@ class Field implements \IteratorAggregate, FieldInterface { /** * {@inheritdoc} */ #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator($this->values); } Loading
src/Item/FieldInterface.php +2 −7 Original line number Diff line number Diff line Loading @@ -153,13 +153,8 @@ interface FieldInterface extends \Traversable { /** * Retrieves this field's label. * * The field's label, contrary to the label returned by the field's data * definition, contains a human-readable representation of the full property * path. The datasource label is not included, though – use getPrefixedLabel() * for that. * * @return string * A human-readable label representing this field's property path. * @return string|null * A human-readable label for this field, or NULL if none has been set yet. */ public function getLabel(); Loading
src/Item/Item.php +1 −0 Original line number Diff line number Diff line Loading @@ -455,6 +455,7 @@ class Item implements \IteratorAggregate, ItemInterface { /** * {@inheritdoc} */ #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator($this->getFields()); } Loading