Commit 082eaf54 authored by Mike Decker's avatar Mike Decker
Browse files

Allow installation on Drupal 10

parent 35e71c7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: Asset Injector
type: module
description: Adds CSS or JS to the page output based on configurable rules.
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^8.8 || ^9 || ^10
package: Development
configure: asset_injector.development
+1 −1
Original line number Diff line number Diff line
@@ -18,6 +18,6 @@
  },
  "license": "GPL-2.0-or-later",
  "require": {
      "drupal/core": "^8.8 || ^9"
      "drupal/core": "^8.8 || ^9.0 || ^10.0"
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ class AssetInjectorCssDuplicateForm extends AssetInjectorCssForm {
   * {@inheritdoc}
   */
  public function form(array $form, FormStateInterface $form_state) {
    /** @var \Drupal\asset_injector\Entity\AssetInjectorCsss $entity */
    /** @var \Drupal\asset_injector\Entity\AssetInjectorCss $entity */
    $entity = $this->entity->createDuplicate();
    $entity->label = $this->t('Duplicate of @label', ['@label' => $this->entity->label()]);
    $this->entity = $entity;
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class AssetInjectorDeleteForm extends EntityConfirmFormBase {
  public function submitForm(array &$form, FormStateInterface $form_state) {
    /** @var \Drupal\Core\Config\Entity\ConfigEntityInterface $entity */
    $entity = $this->entity;
    Drupal::logger('asset_injector')->notice('%type asset %id deleted', [
    $this->logger('asset_injector')->notice('%type asset %id deleted', [
      '%type' => $entity->get('entityTypeId'),
      '%id' => $entity->id(),
    ]);
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ class AssetInjectorDisableForm extends EntityConfirmFormBase {
    $entity = $this->entity;
    $entity->disable()->save();

    Drupal::logger('asset_injector')->notice('%type asset %id disabled', [
    $this->logger('asset_injector')->notice('%type asset %id disabled', [
      '%type' => $entity->get('entityTypeId'),
      '%id' => $entity->id,
    ]);
Loading