Commit 9b52e522 authored by Sascha Grossenbacher's avatar Sascha Grossenbacher Committed by Jordan Thompson
Browse files

Issue #3269869 by victoria-marina, Rashmisoni, Berdir: Drupal 10 compatibility

parent 1af4ab39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: Allowed Formats
description: Limit which text formats are available for each field instance.
type: module
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9.2 || ^10
dependencies:
  - drupal:field
  - drupal:filter
+2 −2
Original line number Diff line number Diff line
@@ -75,9 +75,9 @@ function allowed_formats_field_widget_third_party_settings_form(WidgetInterface
}

/**
 * Implements hook_field_widget_form_alter().
 * Implements hook_field_widget_single_element_form_alter().
 */
function allowed_formats_field_widget_form_alter(&$element, FormStateInterface $form_state, $context) {
function allowed_formats_field_widget_single_element_form_alter(&$element, FormStateInterface $form_state, $context) {
  /** @var \Drupal\Core\Field\FieldDefinitionInterface $field_definition */
  $field_definition = $context['items']->getFieldDefinition();

+1 −1
Original line number Diff line number Diff line
@@ -32,6 +32,6 @@
    "source": "http://cgit.drupalcode.org/allowed_formats"
  },
  "require": {
    "drupal/core": "^8.8 || ^9"
    "drupal/core": "^9.2 || ^10"
  }
}
+0 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@ name: 'Allowed formats base fields test'
type: module
description: 'Support module for allowed formats testing on base fields.'
package: Testing
core_version_requirement: ^8.7.7 || ^9
dependencies:
  drupal:taxonomy
  drupal:allowed_formats
+2 −2
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ class AllowedFormatsTest extends BrowserTestBase {
   *
   * @var array
   */
  public static $modules = [
  protected static $modules = [
    'entity_test',
    'allowed_formats',
    'field_ui',
@@ -52,7 +52,7 @@ class AllowedFormatsTest extends BrowserTestBase {
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
  protected function setUp(): void {
    parent::setUp();

    $this->adminUser = $this->drupalCreateUser([