Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dar-otechestvu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Open-source
dar-otechestvu
Commits
4b7ae59c
Commit
4b7ae59c
authored
Aug 29, 2025
by
Sergey Shadrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#124455] Added modules from Drupal CMS
parent
df72e05b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1026 additions
and
1 deletion
+1026
-1
composer.json
app/composer.json
+1
-0
composer.lock
app/composer.lock
+50
-1
LICENSE.txt
...ules/contrib/selective_better_exposed_filters/LICENSE.txt
+339
-0
README.md
...odules/contrib/selective_better_exposed_filters/README.md
+45
-0
composer.json
...es/contrib/selective_better_exposed_filters/composer.json
+18
-0
selective_better_exposed_filters.info.yml
...exposed_filters/selective_better_exposed_filters.info.yml
+12
-0
selective_better_exposed_filters.install
..._exposed_filters/selective_better_exposed_filters.install
+20
-0
selective_better_exposed_filters.module
...r_exposed_filters/selective_better_exposed_filters.module
+44
-0
DefaultWidget.php
...rc/Plugin/better_exposed_filters/filter/DefaultWidget.php
+46
-0
Links.php
...ilters/src/Plugin/better_exposed_filters/filter/Links.php
+46
-0
RadioButtons.php
...src/Plugin/better_exposed_filters/filter/RadioButtons.php
+46
-0
SelectiveFilterBase.php
...gin/better_exposed_filters/filter/SelectiveFilterBase.php
+298
-0
installed.json
app/vendor/composer/installed.json
+52
-0
installed.php
app/vendor/composer/installed.php
+9
-0
No files found.
app/composer.json
View file @
4b7ae59c
...
@@ -109,6 +109,7 @@
...
@@ -109,6 +109,7 @@
"drupal/seckit"
:
"^2.0"
,
"drupal/seckit"
:
"^2.0"
,
"drupal/security_review"
:
"^3.1"
,
"drupal/security_review"
:
"^3.1"
,
"drupal/select2"
:
"^2.0"
,
"drupal/select2"
:
"^2.0"
,
"drupal/selective_better_exposed_filters"
:
"^3.0"
,
"drupal/session_limit"
:
"^2.0"
,
"drupal/session_limit"
:
"^2.0"
,
"drupal/simple_sitemap"
:
"^4.2"
,
"drupal/simple_sitemap"
:
"^4.2"
,
"drupal/slick"
:
"^3.0"
,
"drupal/slick"
:
"^3.0"
,
...
...
app/composer.lock
View file @
4b7ae59c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
"This file is @generated automatically"
],
],
"content-hash": "
8c9b44d9d6adb01f8dd6b18244c7c8b0
",
"content-hash": "
0975441ec78248f67a205677381a6fb2
",
"packages": [
"packages": [
{
{
"name": "asm89/stack-cors",
"name": "asm89/stack-cors",
...
@@ -9061,6 +9061,55 @@
...
@@ -9061,6 +9061,55 @@
"source": "https://git.drupalcode.org/project/select2"
"source": "https://git.drupalcode.org/project/select2"
}
}
},
},
{
"name": "drupal/selective_better_exposed_filters",
"version": "3.0.3",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/selective_better_exposed_filters.git",
"reference": "3.0.3"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/selective_better_exposed_filters-3.0.3.zip",
"reference": "3.0.3",
"shasum": "31890e23361bf22641b2355c78c5e21c02e2e1bc"
},
"require": {
"drupal/better_exposed_filters": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"drupal/core": "^8 || ^9 || ^10 || ^11"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "3.0.3",
"datestamp": "1719744192",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "stomusic",
"homepage": "https://www.drupal.org/user/3405436"
}
],
"description": "Provide extra option for better exposed filters to show only used terms in filter.",
"homepage": "https://www.drupal.org/project/selective_better_exposed_filters",
"keywords": [
"Drupal"
],
"support": {
"source": "http://cgit.drupalcode.org/selective_better_exposed_filters",
"issues": "https://www.drupal.org/project/issues/selective_better_exposed_filters"
}
},
{
{
"name": "drupal/session_limit",
"name": "drupal/session_limit",
"version": "2.0.2",
"version": "2.0.2",
...
...
app/modules/contrib/selective_better_exposed_filters/LICENSE.txt
0 → 100644
View file @
4b7ae59c
This diff is collapsed.
Click to expand it.
app/modules/contrib/selective_better_exposed_filters/README.md
0 → 100644
View file @
4b7ae59c
# Selective Better Exposed Filters
INTRODUCTION
------------
Provide extra option for better exposed filters to show only used terms.
This module is very simple and just add a part of fuctionality of
[
Views Selective Filters
](
https://drupal.org/project/views_selective_filters
)
to Better Exposed Filters module.
Module provide checkbox "Show only used items" and work only with field based
references provided by core, but don't work with "Has taxonomy term" filter.
REQUIREMENTS
------------
This module requires the following modules:
*
[
Better Exposed Filters
](
https://drupal.org/project/better_exposed_filters
)
*
[
For any reference support - patch from issue
]
(https://www.drupal.org/project/drupal/issues/2429699)
INSTALLATION
------------
It's very easy. You need just:
-
Enable module
-
Change settings of Better Exposed Filter in your view as usual
### Composer
If your site is
[
managed via Composer
](
https://www.drupal.org/node/2718229
)
,
use Composer to download the module:
```sh
composer require "drupal/selective_better_exposed_filters"
```
CONFIGURATION
-------------
The module has no menu or modifiable settings. There is no configuration. When
enabled, the module will add few options to Better Exposed Filter settings
inside the View.
MAINTAINERS
-----------
Current maintainers:
*
Aleksander Riumshin (stomusic) (https://www.drupal.org/u/stomusic)
app/modules/contrib/selective_better_exposed_filters/composer.json
0 → 100644
View file @
4b7ae59c
{
"name"
:
"drupal/selective_better_exposed_filters"
,
"description"
:
"Provide extra option for better exposed filters to show only used terms in filter."
,
"license"
:
"GPL-2.0+"
,
"type"
:
"drupal-module"
,
"keywords"
:
[
"Drupal"
],
"homepage"
:
"https://www.drupal.org/project/selective_better_exposed_filters"
,
"support"
:
{
"issues"
:
"https://www.drupal.org/project/issues/selective_better_exposed_filters"
,
"source"
:
"http://cgit.drupalcode.org/selective_better_exposed_filters"
},
"require"
:
{
"drupal/better_exposed_filters"
:
"^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"minimum-stability"
:
"dev"
}
app/modules/contrib/selective_better_exposed_filters/selective_better_exposed_filters.info.yml
0 → 100644
View file @
4b7ae59c
name
:
'
Selective
Better
Exposed
Filters'
type
:
module
description
:
'
Provide
extra
option
for
better
exposed
filters
to
show
only
used
terms
in
filter.'
core_version_requirement
:
^8 || ^9 || ^10 || ^11
package
:
Views
dependencies
:
-
better_exposed_filters:better_exposed_filters
# Information added by Drupal.org packaging script on 2024-06-30
version
:
'
3.0.3'
project
:
'
selective_better_exposed_filters'
datestamp
:
1719744194
app/modules/contrib/selective_better_exposed_filters/selective_better_exposed_filters.install
0 → 100644
View file @
4b7ae59c
<?php
/**
* @file
* Install, update, and uninstall functions for the SBEF module.
*/
/**
* Implements hook_install().
*/
function
selective_better_exposed_filters_install
()
{
module_set_weight
(
'selective_better_exposed_filters'
,
1
);
}
/**
* Change module weight.
*/
function
selective_better_exposed_filters_update_8102
()
{
selective_better_exposed_filters_install
();
}
app/modules/contrib/selective_better_exposed_filters/selective_better_exposed_filters.module
0 → 100644
View file @
4b7ae59c
<?php
/**
* @file
* selective_better_exposed_filters.module
*/
use
Drupal\Component\Utility\Html
;
use
Drupal\Core\Routing\RouteMatchInterface
;
/**
* Implements hook_help().
*/
function
selective_better_exposed_filters_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
switch
(
$route_name
)
{
case
'help.page.selective_better_exposed_filters'
:
$text
=
file_get_contents
(
__DIR__
.
'/README.md'
);
return
'<pre>'
.
Html
::
escape
(
$text
)
.
'</pre>'
;
}
return
NULL
;
}
/**
* Implements hook_config_schema_info_alter().
*/
function
selective_better_exposed_filters_config_schema_info_alter
(
&
$definitions
)
{
$altered_widgets
=
[
'default'
,
'bef_links'
,
'bef'
];
foreach
(
$altered_widgets
as
$altered_widget
)
{
if
(
isset
(
$definitions
[
"better_exposed_filters.filter.
$altered_widget
"
]))
{
$definitions
[
"better_exposed_filters.filter.
$altered_widget
"
][
'mapping'
][
'options_show_only_used'
]
=
[
'type'
=>
'boolean'
,
'label'
=>
'Show only used items'
,
];
$definitions
[
"better_exposed_filters.filter.
$altered_widget
"
][
'mapping'
][
'options_show_only_used_filtered'
]
=
[
'type'
=>
'boolean'
,
'label'
=>
'Filter items based on filtered result set'
,
];
$definitions
[
"better_exposed_filters.filter.
$altered_widget
"
][
'mapping'
][
'options_hide_when_empty'
]
=
[
'type'
=>
'boolean'
,
'label'
=>
'Hide filter, if no options'
,
];
}
}
}
app/modules/contrib/selective_better_exposed_filters/src/Plugin/better_exposed_filters/filter/DefaultWidget.php
0 → 100644
View file @
4b7ae59c
<?php
namespace
Drupal\selective_better_exposed_filters\Plugin\better_exposed_filters\filter
;
use
Drupal\better_exposed_filters\Plugin\better_exposed_filters\filter\DefaultWidget
as
DefaultWidgetBase
;
use
Drupal\Core\Form\FormStateInterface
;
/**
* Default widget implementation.
*
* @BetterExposedFiltersFilterWidget(
* id = "default",
* label = @Translation("Default"),
* )
*/
class
DefaultWidget
extends
DefaultWidgetBase
{
/**
* {@inheritdoc}
*/
public
function
defaultConfiguration
()
:
array
{
return
parent
::
defaultConfiguration
()
+
SelectiveFilterBase
::
defaultConfiguration
();
}
/**
* {@inheritdoc}
*/
public
function
buildConfigurationForm
(
array
$form
,
FormStateInterface
$form_state
)
:
array
{
/** @var \Drupal\views\Plugin\views\filter\FilterPluginBase $filter */
$filter
=
$this
->
handler
;
$form
=
parent
::
buildConfigurationForm
(
$form
,
$form_state
);
$form
+=
SelectiveFilterBase
::
buildConfigurationForm
(
$filter
,
$this
->
configuration
);
return
$form
;
}
/**
* {@inheritdoc}
*/
public
function
exposedFormAlter
(
array
&
$form
,
FormStateInterface
$form_state
)
:
void
{
parent
::
exposedFormAlter
(
$form
,
$form_state
);
/** @var \Drupal\views\Plugin\views\filter\FilterPluginBase $filter */
$filter
=
$this
->
handler
;
SelectiveFilterBase
::
exposedFormAlter
(
$this
->
view
,
$filter
,
$this
->
configuration
,
$form
,
$form_state
);
}
}
app/modules/contrib/selective_better_exposed_filters/src/Plugin/better_exposed_filters/filter/Links.php
0 → 100644
View file @
4b7ae59c
<?php
namespace
Drupal\selective_better_exposed_filters\Plugin\better_exposed_filters\filter
;
use
Drupal\better_exposed_filters\Plugin\better_exposed_filters\filter\Links
as
LinksBase
;
use
Drupal\Core\Form\FormStateInterface
;
/**
* Default widget implementation.
*
* @BetterExposedFiltersFilterWidget(
* id = "bef_links",
* label = @Translation("Links"),
* )
*/
class
Links
extends
LinksBase
{
/**
* {@inheritdoc}
*/
public
function
defaultConfiguration
()
:
array
{
return
parent
::
defaultConfiguration
()
+
SelectiveFilterBase
::
defaultConfiguration
();
}
/**
* {@inheritdoc}
*/
public
function
buildConfigurationForm
(
array
$form
,
FormStateInterface
$form_state
)
:
array
{
/** @var \Drupal\views\Plugin\views\filter\FilterPluginBase $filter */
$filter
=
$this
->
handler
;
$form
=
parent
::
buildConfigurationForm
(
$form
,
$form_state
);
$form
+=
SelectiveFilterBase
::
buildConfigurationForm
(
$filter
,
$this
->
configuration
);
return
$form
;
}
/**
* {@inheritdoc}
*/
public
function
exposedFormAlter
(
array
&
$form
,
FormStateInterface
$form_state
)
:
void
{
parent
::
exposedFormAlter
(
$form
,
$form_state
);
/** @var \Drupal\views\Plugin\views\filter\FilterPluginBase $filter */
$filter
=
$this
->
handler
;
SelectiveFilterBase
::
exposedFormAlter
(
$this
->
view
,
$filter
,
$this
->
configuration
,
$form
,
$form_state
);
}
}
app/modules/contrib/selective_better_exposed_filters/src/Plugin/better_exposed_filters/filter/RadioButtons.php
0 → 100644
View file @
4b7ae59c
<?php
namespace
Drupal\selective_better_exposed_filters\Plugin\better_exposed_filters\filter
;
use
Drupal\better_exposed_filters\Plugin\better_exposed_filters\filter\RadioButtons
as
RadioButtonsBase
;
use
Drupal\Core\Form\FormStateInterface
;
/**
* Default widget implementation.
*
* @BetterExposedFiltersFilterWidget(
* id = "bef",
* label = @Translation("Checkboxes/Radio Buttons"),
* )
*/
class
RadioButtons
extends
RadioButtonsBase
{
/**
* {@inheritdoc}
*/
public
function
defaultConfiguration
()
:
array
{
return
parent
::
defaultConfiguration
()
+
SelectiveFilterBase
::
defaultConfiguration
();
}
/**
* {@inheritdoc}
*/
public
function
buildConfigurationForm
(
array
$form
,
FormStateInterface
$form_state
)
:
array
{
/** @var \Drupal\views\Plugin\views\filter\FilterPluginBase $filter */
$filter
=
$this
->
handler
;
$form
=
parent
::
buildConfigurationForm
(
$form
,
$form_state
);
$form
+=
SelectiveFilterBase
::
buildConfigurationForm
(
$filter
,
$this
->
configuration
);
return
$form
;
}
/**
* {@inheritdoc}
*/
public
function
exposedFormAlter
(
array
&
$form
,
FormStateInterface
$form_state
)
:
void
{
parent
::
exposedFormAlter
(
$form
,
$form_state
);
/** @var \Drupal\views\Plugin\views\filter\FilterPluginBase $filter */
$filter
=
$this
->
handler
;
SelectiveFilterBase
::
exposedFormAlter
(
$this
->
view
,
$filter
,
$this
->
configuration
,
$form
,
$form_state
);
}
}
app/modules/contrib/selective_better_exposed_filters/src/Plugin/better_exposed_filters/filter/SelectiveFilterBase.php
0 → 100644
View file @
4b7ae59c
This diff is collapsed.
Click to expand it.
app/vendor/composer/installed.json
View file @
4b7ae59c
...
@@ -9467,6 +9467,58 @@
...
@@ -9467,6 +9467,58 @@
},
},
"install-path"
:
"../../modules/contrib/select2"
"install-path"
:
"../../modules/contrib/select2"
},
},
{
"name"
:
"drupal/selective_better_exposed_filters"
,
"version"
:
"3.0.3"
,
"version_normalized"
:
"3.0.3.0"
,
"source"
:
{
"type"
:
"git"
,
"url"
:
"https://git.drupalcode.org/project/selective_better_exposed_filters.git"
,
"reference"
:
"3.0.3"
},
"dist"
:
{
"type"
:
"zip"
,
"url"
:
"https://ftp.drupal.org/files/projects/selective_better_exposed_filters-3.0.3.zip"
,
"reference"
:
"3.0.3"
,
"shasum"
:
"31890e23361bf22641b2355c78c5e21c02e2e1bc"
},
"require"
:
{
"drupal/better_exposed_filters"
:
"^4.0 || ^5.0 || ^6.0 || ^7.0"
,
"drupal/core"
:
"^8 || ^9 || ^10 || ^11"
},
"type"
:
"drupal-module"
,
"extra"
:
{
"drupal"
:
{
"version"
:
"3.0.3"
,
"datestamp"
:
"1719744192"
,
"security-coverage"
:
{
"status"
:
"covered"
,
"message"
:
"Covered by Drupal's security advisory policy"
}
}
},
"installation-source"
:
"dist"
,
"notification-url"
:
"https://packages.drupal.org/8/downloads"
,
"license"
:
[
"GPL-2.0+"
],
"authors"
:
[
{
"name"
:
"stomusic"
,
"homepage"
:
"https://www.drupal.org/user/3405436"
}
],
"description"
:
"Provide extra option for better exposed filters to show only used terms in filter."
,
"homepage"
:
"https://www.drupal.org/project/selective_better_exposed_filters"
,
"keywords"
:
[
"Drupal"
],
"support"
:
{
"source"
:
"http://cgit.drupalcode.org/selective_better_exposed_filters"
,
"issues"
:
"https://www.drupal.org/project/issues/selective_better_exposed_filters"
},
"install-path"
:
"../../modules/contrib/selective_better_exposed_filters"
},
{
{
"name"
:
"drupal/session_limit"
,
"name"
:
"drupal/session_limit"
,
"version"
:
"2.0.2"
,
"version"
:
"2.0.2"
,
...
...
app/vendor/composer/installed.php
View file @
4b7ae59c
...
@@ -1384,6 +1384,15 @@
...
@@ -1384,6 +1384,15 @@
'aliases'
=>
array
(),
'aliases'
=>
array
(),
'dev_requirement'
=>
false
,
'dev_requirement'
=>
false
,
),
),
'drupal/selective_better_exposed_filters'
=>
array
(
'pretty_version'
=>
'3.0.3'
,
'version'
=>
'3.0.3.0'
,
'reference'
=>
'3.0.3'
,
'type'
=>
'drupal-module'
,
'install_path'
=>
__DIR__
.
'/../../modules/contrib/selective_better_exposed_filters'
,
'aliases'
=>
array
(),
'dev_requirement'
=>
false
,
),
'drupal/session_limit'
=>
array
(
'drupal/session_limit'
=>
array
(
'pretty_version'
=>
'2.0.2'
,
'pretty_version'
=>
'2.0.2'
,
'version'
=>
'2.0.2.0'
,
'version'
=>
'2.0.2.0'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment