Commit 62b42df9 authored by Steven Jones's avatar Steven Jones
Browse files

Add some base YML and config.

parent 11273970
# Schema for configuration files of the ImageAPI Optimize module.
imageapi_optimize.pipeline.*:
type: config_entity
label: 'Imageapi Optimize pipeline'
mapping:
name:
type: string
label:
type: label
label: 'Label'
processors:
type: sequence
sequence:
type: mapping
mapping:
id:
type: string
data:
type: imageapi_optimize.processor.[%parent.id]
weight:
type: integer
uuid:
type: string
imageapi_optimize.processor.*:
type: mapping
label: 'Processor settings'
imageapi_optimize.settings:
type: config_object
mapping:
default_pipeline:
type: string
label: 'Default ImageAPI Optimize pipeline'
name: Image Optimize (or ImageAPI Optimize)
type: module
description: 'Define pipelines for image optimization and provide integration with core image styles.'
core: 8.x
# configure: # Todo
admin:
version: VERSION
css:
theme:
css/imageapi_optimize.admin.css: {}
imageapi_optimize_pipeline_add_action:
route_name: imageapi_optimize.pipeline_add
title: 'Add optimization pipeline'
appears_on:
- entity.imageapi_optimize_pipeline.collection
entity.imageapi_optimize_pipeline.collection:
title: 'Image Optimize pipelines'
description: 'Configure pipelines that can be used for optimizing images.'
parent: system.admin_config_media
route_name: entity.imageapi_optimize_pipeline.collection
entity.imageapi_optimize_pipeline.edit_form:
title: 'Edit'
route_name: entity.imageapi_optimize_pipeline.edit_form
base_route: entity.iimageapi_optimize_pipeline.edit_form
entity.imageapi_optimize_pipeline.collection:
title: List
route_name: entity.imageapi_optimize_pipeline.collection
base_route: entity.imageapi_optimize_pipeline.collection
administer imageapi optimize pipelines:
title: 'Administer ImageAPI Optimize pipelines'
imageapi_optimize.pipeline_add:
path: '/admin/config/media/imageapi-optimize-pipelines/add'
defaults:
_entity_form: imageapi_optimize_pipeline.add
_title: 'Add ImageAPI Optimize pipeline'
requirements:
_permission: 'administer imageapi optimize pipelines'
entity.imageapi_optimize_pipeline.edit_form:
path: '/admin/config/media/imageapi-optimize-pipelines/manage/{imageapi_optimize_pipeline}'
defaults:
_entity_form: imageapi_optimize_pipeline.edit
_title: 'Edit pipeline'
requirements:
_permission: 'administer imageapi optimize pipelines'
entity.imageapi_optimize_pipeline.delete_form:
path: '/admin/config/media/imageapi-optimize-pipelines/manage/{imageapi_optimize_pipeline}/delete'
defaults:
_entity_form: 'imageapi_optimize_pipeline.delete'
_title: 'Delete'
requirements:
_permission: 'administer imageapi optimize pipelines'
imageapi_optimize.processor_delete:
path: '/admin/config/media/imageapi-optimize-pipelines/manage/{imageapi_optimize_pipeline}/processors/{imageapi_optimize_processor}/delete'
defaults:
_form: '\Drupal\imageapi_optimize\Form\ImageAPIOptimizeProcessorDeleteForm'
_title: 'Delete imageAPI optimize processor'
requirements:
_permission: 'administer imageapi optimize pipelines'
entity.imageapi_optimize_pipeline.collection:
path: '/admin/config/media/imageapi-optimize-pipelines'
defaults:
_entity_list: 'imageapi_optimize_pipeline'
_title: 'ImageAPI Optimize pipelines'
requirements:
_permission: 'administer imageapi optimize pipelines'
imageapi_optimize.processor_add_form:
path: '/admin/config/media/imageapi-optimize-pipelines/manage/{imageapi_optimize_pipeline}/add/{imageapi_optimize_processor}'
defaults:
_form: '\Drupal\imageapi_optimize\Form\ImageAPIOptimizeProcessorAddForm'
_title: 'Add ImageAPI Optimize processor'
requirements:
_permission: 'administer imageapi optimize pipelines'
imageapi_optimize.processor_edit_form:
path: '/admin/config/media/imageapi-optimize-pipelines/manage/{imageapi_optimize_pipeline}/processors/{imageapi_optimize_processor}'
defaults:
_form: '\Drupal\image\Form\ImageAPIOptimizeProcessorEditForm'
_title: 'Edit ImageAPI Optimizer processor'
requirements:
_permission: 'administer imageapi optimize pipelines'
services:
plugin.manager.imageapi_optimize.processor:
class: Drupal\imageapi_optimize\ImageAPIOptimizeProcessorManager
parent: default_plugin_manager
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment