Skip to content
Snippets Groups Projects
Commit 3780647b authored by Christian Fritsch's avatar Christian Fritsch
Browse files

Issue #3460568: Add gitlabci.yml

parent aeed8926
No related branches found
No related tags found
1 merge request!6Add gitlabci file
Pipeline #221025 passed
################
# GitLabCI template for Drupal projects.
#
# This template is designed to give any Contrib maintainer everything they need to test, without requiring modification.
# It is also designed to keep up to date with Core Development automatically through the use of include files that can be centrally maintained.
# As long as you include the project, ref and three files below, any future updates added by the Drupal Association will be used in your
# pipelines automatically. However, you can modify this template if you have additional needs for your project.
# The full documentation is on https://project.pages.drupalcode.org/gitlab_templates/
################
# For information on alternative values for 'ref' see https://project.pages.drupalcode.org/gitlab_templates/info/templates-version/
# To test a Drupal 7 project, change the first include filename from .main.yml to .main-d7.yml
include:
- project: $_GITLAB_TEMPLATES_REPO
ref: $_GITLAB_TEMPLATES_REF
file:
- "/includes/include.drupalci.main.yml"
- "/includes/include.drupalci.variables.yml"
- "/includes/include.drupalci.workflows.yml"
################
# Pipeline configuration variables are defined with default values and descriptions in the file
# https://git.drupalcode.org/project/gitlab_templates/-/blob/main/includes/include.drupalci.variables.yml
# Uncomment the lines below if you want to override any of the variables. The following is just an example.
################
# variables:
# SKIP_ESLINT: '1'
# OPT_IN_TEST_NEXT_MAJOR: '1'
# _CURL_TEMPLATES_REF: 'main'
# Media expire
This module enables you to unpublish your media entites automatically by setting an expire field.
This module enables you to unpublish your media entities automatically by setting an expire field.
Instructions:
- "Activate media expire" on admin/structure/media/manage/{media}
......
{
"name": "drupal/media_expire",
"description": "Expires media assets.",
"type": "drupal-module",
"require-dev": {
"drupal/graphql": "^4.0"
},
"require": {}
}
......@@ -6,8 +6,8 @@
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\media\MediaTypeInterface;
use Drupal\media\MediaInterface;
use Drupal\media\MediaTypeInterface;
/**
* Implements hook_form_BASE_ID_alter().
......
......@@ -2,8 +2,8 @@
namespace Drupal\media_expire\Commands;
use Drush\Commands\DrushCommands;
use Drupal\media_expire\MediaExpireService;
use Drush\Commands\DrushCommands;
/**
* Defines Drush commands for the media_expire module.
......
......@@ -54,7 +54,7 @@ class FallbackEntity extends DataProducerPluginBase implements ContainerFactoryP
array $configuration,
$pluginId,
$pluginDefinition,
MediaExpireService $mediaExpireService
MediaExpireService $mediaExpireService,
) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->mediaExpireService = $mediaExpireService;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment