This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(()%3D%3E%7B!function()%7Bwindow.drupUpdateFormClose%3Dfunction()%7Bvar%20e%3Ddocument.getElementById(%22drupUpdateStatusForm%22)%3Bnull!%3D%3De%26%26e.remove()%7D%2Cwindow.drupUpdateStatusClear%3Dfunction()%7BObject.values(document.querySelectorAll(%22.update%22)).forEach((e%3D%3E%7BObject.values(e.querySelectorAll(%22tr%22)).forEach((e%3D%3E%7Be.style.display%3D%22block%22%7D))%7D))%7D%2Cwindow.drupUpdateStatusShowAll%3Dfunction()%7BdrupUpdateStatusClear()%2CObject.values(document.querySelectorAll(%22.update%22)).forEach((e%3D%3E%7BObject.values(e.querySelectorAll(%22.ok%2C%20.color-success%22)).forEach((e%3D%3E%7Be.style.display%3D%22none%22%7D))%7D))%7D%2Cwindow.drupUpdateStatusShowSecurity%3Dfunction()%7BdrupUpdateStatusClear()%2CObject.values(document.querySelectorAll(%22.update%22)).forEach((e%3D%3E%7BObject.values(e.querySelectorAll(%22.ok%2C%20.color-success%2C%20.warning%2C%20.unknown%2C%20.color-warning%22)).forEach((e%3D%3E%7Be.style.display%3D%22none%22%7D))%7D))%7D%2CdrupUpdateFormClo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use Drupal\views\ViewExecutable; | |
| use Drupal\views\Plugin\views\query\QueryPluginBase; | |
| /** | |
| * Implements hook_views_query_alter(). | |
| */ | |
| function hook_views_query_alter(ViewExecutable $view, QueryPluginBase $query) { | |
| if ($view->id() == 'view_id') { | |
| // Use the publish date or last updated field to sort for all blog listing views. | |
| $query->addField( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @file | |
| * Contains field_length install and update hooks. | |
| */ | |
| declare(strict_types=1); | |
| use Drupal\Core\Utility\UpdateException; |