composer update
This commit is contained in:
parent
f6abc3dce2
commit
71dfaca858
1753 changed files with 45274 additions and 14619 deletions
|
@ -105,6 +105,13 @@ abstract class ViewsBlockBase extends BlockBase implements ContainerFactoryPlugi
|
|||
return ['views_label' => ''];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getPreviewFallbackString() {
|
||||
return $this->t('Placeholder for the "@view" views block', ['@view' => $this->view->storage->label()]);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
|
@ -148,11 +148,15 @@ class Date extends NumericFilter {
|
|||
}
|
||||
|
||||
if ($operators[$operator]['values'] == 1) {
|
||||
// When the operator is either <, <=, =, !=, >=, > or regular_expression
|
||||
// the input contains only one value.
|
||||
if ($this->value['value'] == '') {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
else {
|
||||
elseif ($operators[$operator]['values'] == 2) {
|
||||
// When the operator is either between or not between the input contains
|
||||
// two values.
|
||||
if ($this->value['min'] == '' || $this->value['max'] == '') {
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace Drupal\views\Plugin\views\query;
|
||||
|
||||
use Drupal\Core\Database\Connection;
|
||||
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
|
||||
|
||||
/**
|
||||
* PostgreSQL-specific date handling.
|
||||
|
@ -14,6 +15,8 @@ use Drupal\Core\Database\Connection;
|
|||
*/
|
||||
class PostgresqlDateSql implements DateSqlInterface {
|
||||
|
||||
use DependencySerializationTrait;
|
||||
|
||||
/**
|
||||
* The database connection.
|
||||
*
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace Drupal\views\Plugin\views\query;
|
||||
|
||||
use Drupal\Core\Database\Connection;
|
||||
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
|
||||
|
||||
/**
|
||||
* SQLite-specific date handling.
|
||||
|
@ -14,6 +15,8 @@ use Drupal\Core\Database\Connection;
|
|||
*/
|
||||
class SqliteDateSql implements DateSqlInterface {
|
||||
|
||||
use DependencySerializationTrait;
|
||||
|
||||
/**
|
||||
* The database connection.
|
||||
*
|
||||
|
|
Reference in a new issue