+++ /dev/null
-# @file
-# .travis.yml - Drupal for Travis CI Integration
-#
-# Template provided by https://github.com/LionsAd/drupal_ti.
-#
-# Based for simpletest upon:
-# https://github.com/sonnym/travis-ci-drupal-module-example
-
-language: php
-
-sudo: false
-
-php:
- - 5.5
- - 5.6
- - 7
- - hhvm
-
-matrix:
- fast_finish: true
- allow_failures:
- - php: hhvm
-
-env:
- global:
- # add composer's global bin directory to the path
- # see: https://github.com/drush-ops/drush#install---composer
- - PATH="$PATH:$HOME/.composer/vendor/bin"
-
- # Configuration variables.
- - DRUPAL_TI_MODULE_NAME="media"
- - DRUPAL_TI_SIMPLETEST_GROUP="media"
-
- # Define runners and environment vars to include before and after the
- # main runners / environment vars.
- #- DRUPAL_TI_SCRIPT_DIR_BEFORE="./drupal_ti/before"
- #- DRUPAL_TI_SCRIPT_DIR_AFTER="./drupal_ti/after"
-
- # The environment to use, supported are: drupal-7, drupal-8
- - DRUPAL_TI_ENVIRONMENT="drupal-8"
- - DRUPAL_TI_CORE_BRANCH="8.2.x"
-
- # The installation profile to use:
- #- DRUPAL_TI_INSTALL_PROFILE="testing"
-
- # Drupal specific variables.
- - DRUPAL_TI_DB="drupal_travis_db"
- - DRUPAL_TI_DB_URL="mysql://root:@127.0.0.1/drupal_travis_db"
- # Note: Do not add a trailing slash here.
- - DRUPAL_TI_WEBSERVER_URL="http://127.0.0.1"
- - DRUPAL_TI_WEBSERVER_PORT="8080"
-
- # Simpletest specific commandline arguments, the DRUPAL_TI_SIMPLETEST_GROUP is appended at the end.
- - DRUPAL_TI_SIMPLETEST_ARGS="--verbose --color --concurrency 4 --url $DRUPAL_TI_WEBSERVER_URL:$DRUPAL_TI_WEBSERVER_PORT"
-
- # === Behat specific variables.
- # This is relative to $TRAVIS_BUILD_DIR
- - DRUPAL_TI_BEHAT_DIR="./tests/behat"
- # These arguments are passed to the bin/behat command.
- - DRUPAL_TI_BEHAT_ARGS=""
- # Specify the filename of the behat.yml with the $DRUPAL_TI_DRUPAL_DIR variables.
- - DRUPAL_TI_BEHAT_YML="behat.yml.dist"
- # This is used to setup Xvfb.
- - DRUPAL_TI_BEHAT_SCREENSIZE_COLOR="1280x1024x16"
- # The version of selenium that should be used.
- - DRUPAL_TI_BEHAT_SELENIUM_VERSION="2.48.2"
- # Set DRUPAL_TI_BEHAT_DRIVER to "selenium" to use "firefox" or "chrome" here.
- - DRUPAL_TI_BEHAT_DRIVER="phantomjs"
- - DRUPAL_TI_BEHAT_BROWSER="firefox"
-
- # PHPUnit specific commandline arguments.
- - DRUPAL_TI_PHPUNIT_ARGS=""
- # Specifying the phpunit-core src/ directory is useful when e.g. a vendor/
- # directory is present in the module directory, which phpunit would then
- # try to find tests in. This option is relative to $TRAVIS_BUILD_DIR.
- #- DRUPAL_TI_PHPUNIT_CORE_SRC_DIRECTORY="./tests/src"
-
- # Code coverage via coveralls.io
- - DRUPAL_TI_COVERAGE="satooshi/php-coveralls:0.6.*"
- # This needs to match your .coveralls.yml file.
- - DRUPAL_TI_COVERAGE_FILE="build/logs/clover.xml"
-
- # Debug options
- #- DRUPAL_TI_DEBUG="-x -v"
- # Set to "all" to output all files, set to e.g. "xvfb selenium" or "selenium",
- # etc. to only output those channels.
- #- DRUPAL_TI_DEBUG_FILE_OUTPUT="selenium xvfb webserver"
-
- matrix:
- # [[[ SELECT ANY OR MORE OPTIONS ]]]
- #- DRUPAL_TI_RUNNERS="phpunit"
- - DRUPAL_TI_RUNNERS="simpletest"
- #- DRUPAL_TI_RUNNERS="behat"
- #- DRUPAL_TI_RUNNERS="phpunit simpletest behat"
- # Use phpunit-core to test modules with phpunit with Drupal 8 core.
- #- DRUPAL_TI_RUNNERS="phpunit-core"
-
-mysql:
- database: drupal_travis_db
- username: root
- encoding: utf8
-
-before_install:
- - composer self-update
- #- cd ./tests
- - composer global require "lionsad/drupal_ti:dev-master"
- - drupal-ti before_install
-
-install:
- - drupal-ti install
-
-before_script:
- - drupal-ti --include drupal_ti/before/before_script.sh
- - drupal-ti before_script
-
-script:
- - drupal-ti script
-
-after_script:
- - drupal-ti after_script
-
-notifications:
- email: false
-
+++ /dev/null
-# Media Module
-
-[![Build Status](https://travis-ci.org/drupal-media/media.svg?branch=8.x-1.x)](https://travis-ci.org/drupal-media/media) [![Scrutinizer](https://scrutinizer-ci.com/g/drupal-media/media/badges/quality-score.png?b=8.x-1.x)](https://scrutinizer-ci.com/g/drupal-media/media/?branch=8.x-1.x)
-
-## Introduction
-
-The Media module provides an extensible framework for managing files and multimedia assets, regardless of whether they are hosted on your own site or a 3rd party site.
-
-Media's aim is to solve Drupal's long standing media handling problem.
-
-## Requirements
-
-* [Media Entity](https://www.drupal.org/project/media_entity)
-* [Media Entity Image](https://www.drupal.org/project/media_entity_image)
-* [Video Embed Field](https://www.drupal.org/project/video_embed_field)
-* [Media Entity Slideshow](https://www.drupal.org/project/media_entity_slideshow)
-* [Media Entity Instagram](https://www.drupal.org/project/media_entity_instagram)
-* [Media Entity Twitter](https://www.drupal.org/project/media_entity_twitter)
-* [Media Entity Document](https://www.drupal.org/project/media_entity_document)
-* [Slick Media](https://www.drupal.org/project/slick_media)
-* [Entity Browser](https://www.drupal.org/project/entity_browser)
-* [Dropzonejs](https://www.drupal.org/project/dropzonejs)
-* [Image Widget Crop](https://www.drupal.org/project/image_widget_crop)
-
-## Installation
-
-After downloading the module in the modules folder, visit the Extend (/admin/modules) page to enable the module. You might have to install the modules required before enabling this module.
-
-Documentation for the module is available in the [Drupal 8 Media Guide](https://drupal-media.gitbooks.io/drupal8-guide/content/modules/media/intro.html).
-
-## Configuration
-
-1. Enable the module
-2. visit /media/add to add media content to website.
-3. Visit /admin/structure/media to edit the default media bundles.
-
-## Technical details
-
-@ToDo
-
-## Maintainers
-
-@ToDo
-
+++ /dev/null
-{
- "name": "drupal/media",
- "description": "Media module for Drupal",
- "type": "drupal-module",
- "homepage": "https://github.com/drupal-media/media/",
- "support": {
- "irc": "irc://irc.freenode.org/drupal-contribute"
- },
- "license": "GPL-2.0+",
- "minimum-stability": "dev",
- "require": { }
-}
-
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.document.field_document
- - field.field.media.document.field_document_size
- - field.field.media.document.field_media_in_library
- - field.field.media.document.field_mime_type
- - media_entity.bundle.document
- module:
- - file
-id: media.document.default
-targetEntityType: media
-bundle: document
-mode: default
-content:
- field_document:
- weight: 1
- settings:
- progress_indicator: throbber
- third_party_settings: { }
- type: file_generic
- field_media_in_library:
- weight: 3
- settings:
- display_label: true
- third_party_settings: { }
- type: boolean_checkbox
- name:
- type: string_textfield
- weight: 0
- settings:
- size: 60
- placeholder: ''
- third_party_settings: { }
-hidden:
- created: true
- field_document_size: true
- field_mime_type: true
- uid: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.gallery.field_media_in_library
- - field.field.media.gallery.field_slide
- - media_entity.bundle.gallery
- module:
- - entity_browser
-id: media.gallery.default
-targetEntityType: media
-bundle: gallery
-mode: default
-content:
- field_media_in_library:
- weight: 3
- settings:
- display_label: true
- third_party_settings: { }
- type: boolean_checkbox
- field_slide:
- weight: 1
- settings:
- entity_browser: gallery_media_library
- field_widget_display: rendered_entity
- field_widget_edit: true
- field_widget_remove: true
- field_widget_display_settings:
- view_mode: media_library
- open: false
- third_party_settings: { }
- type: entity_browser_entity_reference
- name:
- type: string_textfield
- weight: 0
- settings:
- size: 60
- placeholder: ''
- third_party_settings: { }
-hidden:
- created: true
- uid: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.image.field_image
- - field.field.media.image.field_media_in_library
- - image.style.thumbnail
- - media_entity.bundle.image
- module:
- - image_widget_crop
-id: media.image.default
-targetEntityType: media
-bundle: image
-mode: default
-content:
- field_image:
- weight: 1
- settings:
- show_default_crop: true
- preview_image_style: thumbnail
- crop_preview_image_style: media_crop_preview
- crop_list:
- - media_crop
- progress_indicator: throbber
- show_crop_area: false
- third_party_settings: { }
- type: image_widget_crop
- field_media_in_library:
- weight: 3
- settings:
- display_label: true
- third_party_settings: { }
- type: boolean_checkbox
- name:
- type: string_textfield
- weight: 0
- settings:
- size: 60
- placeholder: ''
- third_party_settings: { }
-hidden:
- created: true
- uid: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.instagram.field_instagram_shortcode
- - field.field.media.instagram.field_instagram_url
- - field.field.media.instagram.field_media_in_library
- - media_entity.bundle.instagram
- module:
- - link
-id: media.instagram.default
-targetEntityType: media
-bundle: instagram
-mode: default
-content:
- created:
- type: datetime_timestamp
- weight: 10
- settings: { }
- third_party_settings: { }
- field_instagram_url:
- weight: 11
- settings:
- placeholder_url: ''
- placeholder_title: ''
- third_party_settings: { }
- type: link_default
- field_media_in_library:
- weight: 12
- settings:
- display_label: true
- third_party_settings: { }
- type: boolean_checkbox
- name:
- type: string_textfield
- weight: -5
- settings:
- size: 60
- placeholder: ''
- third_party_settings: { }
- uid:
- type: entity_reference_autocomplete
- weight: 5
- settings:
- match_operator: CONTAINS
- size: 60
- placeholder: ''
- third_party_settings: { }
-hidden:
- field_instagram_shortcode: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.tweet.field_media_in_library
- - field.field.media.tweet.field_tweet_author
- - field.field.media.tweet.field_tweet_id
- - field.field.media.tweet.field_tweet_url
- - media_entity.bundle.tweet
- module:
- - link
-id: media.tweet.default
-targetEntityType: media
-bundle: tweet
-mode: default
-content:
- created:
- type: datetime_timestamp
- weight: 10
- settings: { }
- third_party_settings: { }
- field_media_in_library:
- weight: 12
- settings:
- display_label: true
- third_party_settings: { }
- type: boolean_checkbox
- field_tweet_url:
- weight: 11
- settings:
- placeholder_url: ''
- placeholder_title: ''
- third_party_settings: { }
- type: link_default
- name:
- type: string_textfield
- weight: -5
- settings:
- size: 60
- placeholder: ''
- third_party_settings: { }
- uid:
- type: entity_reference_autocomplete
- weight: 5
- settings:
- match_operator: CONTAINS
- size: 60
- placeholder: ''
- third_party_settings: { }
-hidden:
- field_tweet_author: true
- field_tweet_id: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.video.field_id
- - field.field.media.video.field_media_in_library
- - field.field.media.video.field_source
- - field.field.media.video.field_video
- - media_entity.bundle.video
- module:
- - video_embed_field
-id: media.video.default
-targetEntityType: media
-bundle: video
-mode: default
-content:
- field_media_in_library:
- weight: 3
- settings:
- display_label: true
- third_party_settings: { }
- type: boolean_checkbox
- field_video:
- type: video_embed_field_textfield
- weight: 1
- settings: { }
- third_party_settings: { }
- name:
- type: string_textfield
- weight: 0
- settings:
- size: 60
- placeholder: ''
- third_party_settings: { }
-hidden:
- created: true
- field_id: true
- field_source: true
- uid: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.document.field_document
- - field.field.media.document.field_document_size
- - field.field.media.document.field_media_in_library
- - field.field.media.document.field_mime_type
- - media_entity.bundle.document
- module:
- - file
- - user
-id: media.document.default
-targetEntityType: media
-bundle: document
-mode: default
-content:
- created:
- label: hidden
- type: timestamp
- weight: 1
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- field_document:
- type: file_default
- weight: 3
- label: above
- settings: { }
- third_party_settings: { }
- field_document_size:
- weight: 4
- label: above
- settings:
- thousand_separator: ''
- prefix_suffix: true
- third_party_settings: { }
- type: number_integer
- name:
- label: hidden
- type: string
- weight: 0
- settings:
- link_to_entity: false
- third_party_settings: { }
- uid:
- label: hidden
- type: author
- weight: 2
- settings: { }
- third_party_settings: { }
-hidden:
- field_media_in_library: true
- field_mime_type: true
- thumbnail: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.media.media_library
- - field.field.media.document.field_document
- - field.field.media.document.field_document_size
- - field.field.media.document.field_mime_type
- - image.style.thumbnail
- - media_entity.bundle.document
- module:
- - file
- - image
- - user
-_core:
- default_config_hash: x_n0Hh8fjeFKYeDq-rWrWsjFS7WwXqE5Cs2pP4waH4k
-id: media.document.media_library
-targetEntityType: media
-bundle: document
-mode: media_library
-content:
- created:
- label: hidden
- type: timestamp
- weight: 5
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- field_document:
- weight: 2
- label: hidden
- settings: { }
- third_party_settings: { }
- type: file_default
- field_document_size:
- weight: 3
- label: hidden
- settings:
- thousand_separator: ''
- prefix_suffix: true
- third_party_settings: { }
- type: number_integer
- name:
- label: hidden
- type: string
- weight: 0
- settings:
- link_to_entity: true
- third_party_settings: { }
- thumbnail:
- type: image
- weight: 1
- label: hidden
- settings:
- image_style: thumbnail
- image_link: ''
- third_party_settings: { }
- uid:
- label: hidden
- type: author
- weight: 4
- settings: { }
- third_party_settings: { }
-hidden:
- field_mime_type: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.gallery.field_media_in_library
- - field.field.media.gallery.field_slide
- - media_entity.bundle.gallery
- module:
- - slick_media
-id: media.gallery.default
-targetEntityType: media
-bundle: gallery
-mode: default
-content:
- field_slide:
- weight: 0
- label: hidden
- settings:
- vanilla: true
- optionset: default
- optionset_thumbnail: ''
- skin: ''
- skin_thumbnail: ''
- image_style: gallery_item
- thumbnail_style: ''
- thumbnail_effect: ''
- media_switch: ''
- ratio: ''
- view_mode: gallery
- image: ''
- title: ''
- link: ''
- layout: ''
- thumbnail_caption: ''
- class: ''
- cache: -1
- sizes: ''
- current_view_mode: default
- background: false
- caption:
- field_image: '0'
- field_id: '0'
- field_source: '0'
- field_video: '0'
- skin_arrows: ''
- skin_dots: ''
- responsive_image_style: ''
- iframe_lazy: false
- thumbnail: ''
- overlay: ''
- id: ''
- breakpoints:
- xs:
- breakpoint: ''
- image_style: ''
- width: ''
- sm:
- breakpoint: ''
- image_style: ''
- width: ''
- md:
- breakpoint: ''
- image_style: ''
- width: ''
- lg:
- breakpoint: ''
- image_style: ''
- width: ''
- xl:
- breakpoint: ''
- image_style: ''
- width: ''
- override: false
- overridables:
- arrows: '0'
- autoplay: '0'
- dots: '0'
- draggable: '0'
- infinite: '0'
- mouseWheel: '0'
- randomize: '0'
- variableWidth: '0'
- color_field: ''
- grid: 0
- grid_header: ''
- grid_medium: 0
- grid_small: 0
- preserve_keys: false
- visible_items: 0
- display: main
- item_id: ''
- box_caption: { }
- box_caption_custom: ''
- box_style: ''
- icon: false
- dimension: ''
- thumbnail_position: ''
- third_party_settings: { }
- type: slick_media
-hidden:
- created: true
- field_media_in_library: true
- name: true
- thumbnail: true
- uid: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.media.media_library
- - field.field.media.gallery.field_slide
- - image.style.media_library_item
- - media_entity.bundle.gallery
- module:
- - image
- - user
-_core:
- default_config_hash: 5R-2OBWiHE28_qMjRDLXxZ9YLEVrlS2uYY6y7ETJS9E
-id: media.gallery.media_library
-targetEntityType: media
-bundle: gallery
-mode: media_library
-content:
- created:
- type: timestamp
- weight: 3
- label: hidden
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- name:
- type: string
- weight: 0
- label: hidden
- settings:
- link_to_entity: true
- third_party_settings: { }
- thumbnail:
- type: image
- weight: 1
- label: hidden
- settings:
- image_style: media_library_item
- image_link: ''
- third_party_settings: { }
- uid:
- type: author
- weight: 2
- label: hidden
- settings: { }
- third_party_settings: { }
-hidden:
- field_slide: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.image.field_image
- - field.field.media.image.field_media_in_library
- - image.style.media_crop
- - media_entity.bundle.image
- module:
- - image
- - user
-id: media.image.default
-targetEntityType: media
-bundle: image
-mode: default
-content:
- created:
- label: hidden
- type: timestamp
- weight: 1
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- field_image:
- weight: 3
- label: hidden
- settings:
- image_style: media_crop
- image_link: ''
- third_party_settings: { }
- type: image
- name:
- label: hidden
- type: string
- weight: 0
- settings:
- link_to_entity: false
- third_party_settings: { }
- uid:
- label: hidden
- type: author
- weight: 2
- settings: { }
- third_party_settings: { }
-hidden:
- field_media_in_library: true
- thumbnail: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.media.media_library
- - field.field.media.image.field_image
- - image.style.media_library_item
- - media_entity.bundle.image
- module:
- - image
- - user
-_core:
- default_config_hash: R3AspO8uJJjAq_RyxT35nzRCriMjTj5qmyAlkCNlEtg
-id: media.image.media_library
-targetEntityType: media
-bundle: image
-mode: media_library
-content:
- created:
- type: timestamp
- weight: 3
- label: hidden
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- name:
- label: hidden
- type: string
- weight: 0
- settings:
- link_to_entity: true
- third_party_settings: { }
- thumbnail:
- type: image
- weight: 1
- label: hidden
- settings:
- image_style: media_library_item
- image_link: ''
- third_party_settings: { }
- uid:
- type: author
- weight: 2
- label: hidden
- settings: { }
- third_party_settings: { }
-hidden:
- field_image: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.instagram.field_instagram_shortcode
- - field.field.media.instagram.field_instagram_url
- - field.field.media.instagram.field_media_in_library
- - media_entity.bundle.instagram
- module:
- - media_entity_instagram
- - user
-id: media.instagram.default
-targetEntityType: media
-bundle: instagram
-mode: default
-content:
- created:
- label: hidden
- type: timestamp
- weight: 1
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- field_instagram_url:
- weight: 3
- label: hidden
- settings:
- width: 480
- height: 640
- third_party_settings: { }
- type: instagram_embed
- name:
- label: hidden
- type: string
- weight: 0
- settings:
- link_to_entity: false
- third_party_settings: { }
- uid:
- label: hidden
- type: author
- weight: 2
- settings: { }
- third_party_settings: { }
-hidden:
- field_instagram_shortcode: true
- field_media_in_library: true
- thumbnail: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.media.media_library
- - field.field.media.instagram.field_instagram_shortcode
- - field.field.media.instagram.field_instagram_url
- - media_entity.bundle.instagram
- module:
- - media_entity_instagram
- - user
-id: media.instagram.media_library
-targetEntityType: media
-bundle: instagram
-mode: media_library
-content:
- created:
- label: hidden
- type: timestamp
- weight: 3
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- field_instagram_url:
- weight: 1
- label: hidden
- settings:
- width: 260
- height: 340
- third_party_settings: { }
- type: instagram_embed
- name:
- label: hidden
- type: string
- weight: 0
- settings:
- link_to_entity: true
- third_party_settings: { }
- uid:
- label: hidden
- type: author
- weight: 2
- settings: { }
- third_party_settings: { }
-hidden:
- field_instagram_shortcode: true
- thumbnail: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.tweet.field_media_in_library
- - field.field.media.tweet.field_tweet_author
- - field.field.media.tweet.field_tweet_id
- - field.field.media.tweet.field_tweet_url
- - media_entity.bundle.tweet
- module:
- - media_entity_twitter
- - user
-id: media.tweet.default
-targetEntityType: media
-bundle: tweet
-mode: default
-content:
- created:
- label: hidden
- type: timestamp
- weight: 1
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- field_tweet_url:
- weight: 3
- label: hidden
- settings: { }
- third_party_settings: { }
- type: twitter_embed
- name:
- label: hidden
- type: string
- weight: 0
- settings:
- link_to_entity: false
- third_party_settings: { }
- uid:
- label: hidden
- type: author
- weight: 2
- settings: { }
- third_party_settings: { }
-hidden:
- field_media_in_library: true
- field_tweet_author: true
- field_tweet_id: true
- thumbnail: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.media.media_library
- - field.field.media.tweet.field_tweet_author
- - field.field.media.tweet.field_tweet_id
- - field.field.media.tweet.field_tweet_url
- - media_entity.bundle.tweet
- module:
- - media_entity_twitter
- - user
-_core:
- default_config_hash: CGkENzPx_szsVtDhN6ptOL28tAGnZDTvboNR7L38_sI
-id: media.tweet.media_library
-targetEntityType: media
-bundle: tweet
-mode: media_library
-content:
- created:
- label: hidden
- type: timestamp
- weight: 3
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- field_tweet_url:
- weight: 1
- label: hidden
- settings: { }
- third_party_settings: { }
- type: twitter_embed
- name:
- label: hidden
- type: string
- weight: 0
- settings:
- link_to_entity: true
- third_party_settings: { }
- uid:
- label: hidden
- type: author
- weight: 2
- settings: { }
- third_party_settings: { }
-hidden:
- field_tweet_author: true
- field_tweet_id: true
- thumbnail: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.video.field_id
- - field.field.media.video.field_media_in_library
- - field.field.media.video.field_source
- - field.field.media.video.field_video
- - media_entity.bundle.video
- module:
- - user
- - video_embed_field
-id: media.video.default
-targetEntityType: media
-bundle: video
-mode: default
-content:
- created:
- label: hidden
- type: timestamp
- weight: 1
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- field_video:
- type: video_embed_field_video
- weight: 3
- label: hidden
- settings:
- responsive: true
- width: 854
- height: 480
- autoplay: true
- third_party_settings: { }
- name:
- label: hidden
- type: string
- weight: 0
- settings:
- link_to_entity: false
- third_party_settings: { }
- uid:
- label: hidden
- type: author
- weight: 2
- settings: { }
- third_party_settings: { }
-hidden:
- field_id: true
- field_media_in_library: true
- field_source: true
- thumbnail: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.media.media_library
- - field.field.media.video.field_id
- - field.field.media.video.field_source
- - field.field.media.video.field_video
- - image.style.media_library_item
- - media_entity.bundle.video
- module:
- - image
- - user
-_core:
- default_config_hash: pZES-uG_mHURoSF49BhzbQPzEz32mWcPz4yxP-Nzrp0
-id: media.video.media_library
-targetEntityType: media
-bundle: video
-mode: media_library
-content:
- created:
- type: timestamp
- weight: 3
- label: hidden
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
- name:
- label: hidden
- type: string
- weight: 0
- settings:
- link_to_entity: true
- third_party_settings: { }
- thumbnail:
- type: image
- weight: 1
- label: hidden
- settings:
- image_style: media_library_item
- image_link: ''
- third_party_settings: { }
- uid:
- type: author
- weight: 2
- label: hidden
- settings: { }
- third_party_settings: { }
-hidden:
- field_id: true
- field_source: true
- field_video: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- enforced:
- module:
- - media
- module:
- - media_entity
-id: media.gallery
-label: Gallery
-targetEntityType: media
-cache: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
-id: media.media_library
-label: 'Media Library'
-targetEntityType: media
-cache: true
+++ /dev/null
-langcode: en
-status: true
-dependencies: { }
-label: 'Media Crop'
-id: media_crop
-description: 'Crop used for image media bundle.'
-aspect_ratio: ''
-soft_limit_width: null
-soft_limit_height: null
-hard_limit_width: null
-hard_limit_height: null
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- content:
- - 'file:file:39004672-000c-4b13-af59-838822a4bc5a'
- module:
- - entity_embed
- - media_entity
-label: Media
-id: media
-type_id: entity
-type_settings:
- entity_type: media
- bundles: { }
- display_plugins: { }
- entity_browser: media_embed
- entity_browser_settings:
- display_review: false
-icon_uuid: 39004672-000c-4b13-af59-838822a4bc5a
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.image.field_image
- - media_entity.bundle.image
- - views.view.media_library
- module:
- - dropzonejs_eb_widget
- - entity_browser_entity_form
- - views
-name: gallery_media_library
-label: 'Gallery media library'
-display: modal
-display_configuration:
- width: '950'
- height: '600'
- link_text: 'Select media'
-selection_display: no_display
-selection_display_configuration: { }
-widget_selector: tabs
-widget_selector_configuration: { }
-widgets:
- c1df873e-9e41-41c0-b22f-f4b56d51d9c0:
- settings:
- media_entity_bundle: image
- upload_location: 'public://[date:custom:Y]-[date:custom:m]'
- dropzone_description: 'Drag and drop files here to upload'
- max_filesize: 2M
- extensions: 'jpg jpeg gif png'
- uuid: c1df873e-9e41-41c0-b22f-f4b56d51d9c0
- weight: -8
- label: 'Upload images'
- id: dropzonejs_media_entity
- 3da26b3a-8d09-4270-a0a8-a89691b0b73a:
- settings:
- view: media_library
- view_display: gallery_media_select_modal
- uuid: 3da26b3a-8d09-4270-a0a8-a89691b0b73a
- weight: -10
- label: 'All media'
- id: view
- 297329aa-dcf8-4ec3-aac2-dd4f46c89d83:
- settings:
- view: media_library
- view_display: gallery_user_media_select_modal
- uuid: 297329aa-dcf8-4ec3-aac2-dd4f46c89d83
- weight: -9
- label: 'My media'
- id: view
- 6cf9f4b5-d1b8-4325-96ef-a48da34e4ea7:
- settings:
- entity_type: media
- bundle: video
- uuid: 6cf9f4b5-d1b8-4325-96ef-a48da34e4ea7
- weight: -7
- label: 'Add video'
- id: entity_form
-submit_text: 'Select media files'
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - media_entity.bundle.image
- - views.view.media_library
- module:
- - dropzonejs_eb_widget
- - entity_browser_entity_form
- - media_entity
- - views
-name: media_embed
-label: 'Media Embed'
-display: iframe
-display_configuration:
- width: 100%
- height: '768'
- link_text: 'Select media'
- auto_open: true
-selection_display: no_display
-selection_display_configuration: { }
-widget_selector: tabs
-widget_selector_configuration: { }
-widgets:
- 1672850b-3c24-400f-a0ed-a160efa55310:
- settings:
- view: media_library
- view_display: media_select_modal
- submit_text: 'Select media'
- uuid: 1672850b-3c24-400f-a0ed-a160efa55310
- weight: 1
- label: 'All media'
- id: view
- 6eea7af9-0310-4b02-a243-3eadc488a077:
- settings:
- view: media_library
- view_display: user_media_select_modal
- submit_text: 'Select media'
- uuid: 6eea7af9-0310-4b02-a243-3eadc488a077
- weight: 2
- label: 'My media'
- id: view
- f3cd984b-a622-432b-b87c-e211a6b901e2:
- settings:
- media_entity_bundle: image
- upload_location: 'public://[date:custom:Y]-[date:custom:m]'
- dropzone_description: 'Drag and drop files here to upload'
- max_filesize: 2M
- extensions: 'png jpg jpeg gif'
- submit_text: 'Select entities'
- uuid: f3cd984b-a622-432b-b87c-e211a6b901e2
- weight: 3
- label: 'Add images'
- id: dropzonejs_media_entity
- 927280a8-090f-4de8-b66a-932c81ed13c3:
- settings:
- entity_type: media
- bundle: video
- form_mode: default
- submit_text: 'Save video'
- uuid: 927280a8-090f-4de8-b66a-932c81ed13c3
- weight: 4
- label: 'Add video'
- id: entity_form
- c2f178e7-de55-4369-9c67-fee6ca2c11f0:
- settings:
- entity_type: media
- bundle: document
- form_mode: default
- submit_text: 'Save document'
- uuid: c2f178e7-de55-4369-9c67-fee6ca2c11f0
- weight: 5
- label: 'Add document'
- id: entity_form
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.media.image.field_image
- - media_entity.bundle.image
- - views.view.media_library
- module:
- - dropzonejs_eb_widget
- - entity_browser_entity_form
- - views
-_core:
- default_config_hash: 4iRNH-RBNv_P6dA3wXHiA9BjuBZYMOXScslFy1qoPQI
-name: media_library
-label: 'Media Library'
-display: modal
-display_configuration:
- width: '950'
- height: '600'
- link_text: 'Select media'
- auto_open: true
-selection_display: no_display
-selection_display_configuration: { }
-widget_selector: tabs
-widget_selector_configuration: { }
-widgets:
- f7742394-192d-4026-9947-055f7e167fb8:
- settings:
- view: media_library
- view_display: media_select_modal
- uuid: f7742394-192d-4026-9947-055f7e167fb8
- weight: 1
- label: 'All Media'
- id: view
- 1d256d06-dcd8-4fb8-86a9-52c8024c2c73:
- settings:
- media_entity_bundle: 'image'
- upload_location: 'public://[date:custom:Y]-[date:custom:m]'
- dropzone_description: 'Drag and drop files here to upload'
- max_filesize: 2M
- extensions: 'png jpg jpeg gif'
- uuid: 1d256d06-dcd8-4fb8-86a9-52c8024c2c73
- weight: 0
- label: 'Upload files'
- id: dropzonejs_media_entity
- 6c56db32-05ff-4665-bf1a-c146b129c616:
- settings:
- view: media_library
- view_display: user_media_select_modal
- uuid: 6c56db32-05ff-4665-bf1a-c146b129c616
- weight: 3
- label: 'My Media'
- id: view
- ccb53382-c6c1-4e74-8d3a-9f7e850d6ebc:
- settings:
- entity_type: media
- bundle: video
- uuid: ccb53382-c6c1-4e74-8d3a-9f7e850d6ebc
- weight: 4
- label: 'Add video'
- id: entity_form
-submit_text: 'Select media files'
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_document
- - media_entity.bundle.document
- module:
- - file
-id: media.document.field_document
-field_name: field_document
-entity_type: media
-bundle: document
-label: Document
-description: 'This field stores the document file.'
-required: false
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings:
- file_directory: '[date:custom:Y]-[date:custom:m]'
- file_extensions: 'txt pdf doc docx odf ods odt otp ots ott odp ppt pptx rtf xls xlsx csv'
- max_filesize: ''
- description_field: false
- handler: 'default:file'
- handler_settings: { }
-field_type: file
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_document_size
- - media_entity.bundle.document
-id: media.document.field_document_size
-field_name: field_document_size
-entity_type: media
-bundle: document
-label: Size
-description: 'This field stores the size of the document file.'
-required: false
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings:
- min: null
- max: null
- prefix: ''
- suffix: byte|bytes
-field_type: integer
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_media_in_library
- - media_entity.bundle.document
-id: media.document.field_media_in_library
-field_name: field_media_in_library
-entity_type: media
-bundle: document
-label: 'Save to my media library'
-description: ''
-required: false
-translatable: true
-default_value:
- -
- value: 1
-default_value_callback: ''
-settings:
- on_label: 'Saved to my media library'
- off_label: 'Not in my media library'
-field_type: boolean
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_mime_type
- - media_entity.bundle.document
-id: media.document.field_mime_type
-field_name: field_mime_type
-entity_type: media
-bundle: document
-label: 'MIME Type'
-description: 'This field stores the mime type of the document.'
-required: false
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings: { }
-field_type: string
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_media_in_library
- - media_entity.bundle.gallery
-id: media.gallery.field_media_in_library
-field_name: field_media_in_library
-entity_type: media
-bundle: gallery
-label: 'Save to my media library'
-description: ''
-required: false
-translatable: true
-default_value:
- -
- value: 1
-default_value_callback: ''
-settings:
- on_label: 'Saved to my media library'
- off_label: 'Not in my media library'
-field_type: boolean
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_slide
- - media_entity.bundle.document
- - media_entity.bundle.gallery
- - media_entity.bundle.image
- - media_entity.bundle.instagram
- - media_entity.bundle.tweet
- - media_entity.bundle.video
-_core:
- default_config_hash: '-Vokz3E77rQR00KAD_b4OzhvWKUK_0RWM68Bs8jeAhM'
-id: media.gallery.field_slide
-field_name: field_slide
-entity_type: media
-bundle: gallery
-label: Slides
-description: 'Media type items for slideshow'
-required: false
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings:
- handler: 'default:media'
- handler_settings:
- target_bundles:
- document: document
- image: image
- instagram: instagram
- tweet: tweet
- video: video
- sort:
- field: _none
- auto_create: false
- auto_create_bundle: image
-field_type: entity_reference
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_image
- - media_entity.bundle.image
- module:
- - image
-id: media.image.field_image
-field_name: field_image
-entity_type: media
-bundle: image
-label: Image
-description: ''
-required: true
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings:
- file_directory: '[date:custom:Y]-[date:custom:m]'
- file_extensions: 'png gif jpg jpeg'
- max_filesize: ''
- max_resolution: ''
- min_resolution: ''
- alt_field: true
- alt_field_required: true
- title_field: false
- title_field_required: false
- default_image:
- uuid: ''
- alt: ''
- title: ''
- width: null
- height: null
- handler: 'default:file'
- handler_settings: { }
-field_type: image
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_media_in_library
- - media_entity.bundle.image
-id: media.image.field_media_in_library
-field_name: field_media_in_library
-entity_type: media
-bundle: image
-label: 'Save to my media library'
-description: ''
-required: false
-translatable: true
-default_value:
- -
- value: 1
-default_value_callback: ''
-settings:
- on_label: 'Saved to my media library'
- off_label: 'Not in my media library'
-field_type: boolean
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_instagram_shortcode
- - media_entity.bundle.instagram
-id: media.instagram.field_instagram_shortcode
-field_name: field_instagram_shortcode
-entity_type: media
-bundle: instagram
-label: 'Instagram Shortcode'
-description: 'Instagram post''s unique identifier. Ex: BHak8cShinX is the shortcode for www.instagram.com/p/BHak8cShinX/'
-required: false
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings: { }
-field_type: string
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_instagram_url
- - media_entity.bundle.instagram
- module:
- - link
-id: media.instagram.field_instagram_url
-field_name: field_instagram_url
-entity_type: media
-bundle: instagram
-label: 'Instagram URL'
-description: 'URL of the Instagram post. Example url: https://www.instagram.com/p/BHak8cShinX/'
-required: true
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings:
- link_type: 16
- title: 0
-field_type: link
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_media_in_library
- - media_entity.bundle.instagram
-id: media.instagram.field_media_in_library
-field_name: field_media_in_library
-entity_type: media
-bundle: instagram
-label: 'Save to my media library'
-description: ''
-required: false
-translatable: false
-default_value:
- -
- value: 1
-default_value_callback: ''
-settings:
- on_label: 'Saved to my media library'
- off_label: 'Not in my media library'
-field_type: boolean
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_media_in_library
- - media_entity.bundle.tweet
-id: media.tweet.field_media_in_library
-field_name: field_media_in_library
-entity_type: media
-bundle: tweet
-label: 'Save to my media library'
-description: ''
-required: false
-translatable: true
-default_value:
- -
- value: 1
-default_value_callback: ''
-settings:
- on_label: 'Saved to my media library'
- off_label: 'Not in my media library'
-field_type: boolean
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_tweet_author
- - media_entity.bundle.tweet
-id: media.tweet.field_tweet_author
-field_name: field_tweet_author
-entity_type: media
-bundle: tweet
-label: 'Tweet author'
-description: 'This field stores the author of the tweet.'
-required: false
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings: { }
-field_type: string
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_tweet_id
- - media_entity.bundle.tweet
-id: media.tweet.field_tweet_id
-field_name: field_tweet_id
-entity_type: media
-bundle: tweet
-label: 'Tweet ID'
-description: 'This field stores the id of the tweet. Example: 20 is the id in twitter.com/jack/status/20'
-required: false
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings: { }
-field_type: string
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_tweet_url
- - media_entity.bundle.tweet
- module:
- - link
-id: media.tweet.field_tweet_url
-field_name: field_tweet_url
-entity_type: media
-bundle: tweet
-label: 'Tweet URL'
-description: 'This field stores the URL of the tweet. Example: https://twitter.com/jack/status/20'
-required: true
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings:
- link_type: 16
- title: 0
-field_type: link
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_id
- - media_entity.bundle.video
-id: media.video.field_id
-field_name: field_id
-entity_type: media
-bundle: video
-label: 'Video ID'
-description: ''
-required: false
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings: { }
-field_type: string
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_media_in_library
- - media_entity.bundle.video
-id: media.video.field_media_in_library
-field_name: field_media_in_library
-entity_type: media
-bundle: video
-label: 'Save to my media library'
-description: ''
-required: false
-translatable: true
-default_value:
- -
- value: 1
-default_value_callback: ''
-settings:
- on_label: 'Saved to my media library'
- off_label: 'Not in my media library'
-field_type: boolean
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_source
- - media_entity.bundle.video
-id: media.video.field_source
-field_name: field_source
-entity_type: media
-bundle: video
-label: 'Video source name'
-description: ''
-required: false
-translatable: false
-default_value: { }
-default_value_callback: ''
-settings: { }
-field_type: string
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.media.field_video
- - media_entity.bundle.video
- module:
- - video_embed_field
-id: media.video.field_video
-field_name: field_video
-entity_type: media
-bundle: video
-label: 'Video URL'
-description: 'Enter a YouTube/Vimeo video URL. <a href="https://www.drupal.org/project/video_embed_field">Click here</a> to learn about adding more providers.'
-required: true
-translatable: true
-default_value: { }
-default_value_callback: ''
-settings:
- allowed_providers:
- vimeo: '0'
- youtube_playlist: '0'
- youtube: '0'
-field_type: video_embed_field
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - file
- - media_entity
-id: media.field_document
-field_name: field_document
-entity_type: media
-type: file
-settings:
- target_type: file
- display_field: false
- display_default: false
- uri_scheme: public
-module: file
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
-id: media.field_document_size
-field_name: field_document_size
-entity_type: media
-type: integer
-settings:
- unsigned: false
- size: normal
-module: core
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
-id: media.field_id
-field_name: field_id
-entity_type: media
-type: string
-settings:
- max_length: 255
- is_ascii: false
- case_sensitive: false
-module: core
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - file
- - image
- - media_entity
-id: media.field_image
-field_name: field_image
-entity_type: media
-type: image
-settings:
- uri_scheme: public
- default_image:
- uuid: ''
- alt: ''
- title: ''
- width: null
- height: null
- target_type: file
- display_field: false
- display_default: false
-module: image
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
-id: media.field_instagram_shortcode
-field_name: field_instagram_shortcode
-entity_type: media
-type: string
-settings:
- max_length: 255
- is_ascii: false
- case_sensitive: false
-module: core
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - link
- - media_entity
-id: media.field_instagram_url
-field_name: field_instagram_url
-entity_type: media
-type: link
-settings: { }
-module: link
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
-id: media.field_media_in_library
-field_name: field_media_in_library
-entity_type: media
-type: boolean
-settings: { }
-module: core
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
-id: media.field_mime_type
-field_name: field_mime_type
-entity_type: media
-type: string
-settings:
- max_length: 255
- is_ascii: false
- case_sensitive: false
-module: core
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
-id: media.field_slide
-field_name: field_slide
-entity_type: media
-type: entity_reference
-settings:
- target_type: media
-module: core
-locked: false
-cardinality: -1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
-id: media.field_source
-field_name: field_source
-entity_type: media
-type: string
-settings:
- max_length: 255
- is_ascii: false
- case_sensitive: false
-module: core
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
-id: media.field_tweet_author
-field_name: field_tweet_author
-entity_type: media
-type: string
-settings:
- max_length: 255
- is_ascii: false
- case_sensitive: false
-module: core
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
-id: media.field_tweet_id
-field_name: field_tweet_id
-entity_type: media
-type: string
-settings:
- max_length: 255
- is_ascii: false
- case_sensitive: false
-module: core
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - link
- - media_entity
-id: media.field_tweet_url
-field_name: field_tweet_url
-entity_type: media
-type: link
-settings: { }
-module: link
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity
- - video_embed_field
-id: media.field_video
-field_name: field_video
-entity_type: media
-type: video_embed_field
-settings: { }
-module: video_embed_field
-locked: false
-cardinality: 1
-translatable: true
-indexes: { }
-persist_with_no_fields: false
-custom_storage: false
+++ /dev/null
-langcode: en
-status: true
-dependencies: { }
-name: gallery_item
-label: 'Gallery item'
-effects: { }
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - crop
-name: media_crop
-label: 'Media Crop'
-effects:
- 39bd5538-f2bc-48a4-b6f2-90ba2175b1eb:
- uuid: 39bd5538-f2bc-48a4-b6f2-90ba2175b1eb
- id: crop_crop
- weight: 2
- data:
- crop_type: media_crop
+++ /dev/null
-langcode: en
-status: true
-dependencies: { }
-name: media_crop_preview
-label: 'Media Crop Preview'
-effects:
- 30fad5b9-974c-478a-a184-49eceaf12fdb:
- uuid: 30fad5b9-974c-478a-a184-49eceaf12fdb
- id: image_scale
- weight: 1
- data:
- width: 800
- height: null
- upscale: false
+++ /dev/null
-langcode: en
-status: true
-dependencies: { }
-_core:
- default_config_hash: CxKqipu7yjtFAn40Pe3DhGQ3BbeagRtTMY6r4LbMARM
-name: media_library_item
-label: 'Media library item'
-effects:
- 4d207f58-9aeb-4cc2-9e68-b73febc92d5c:
- uuid: 4d207f58-9aeb-4cc2-9e68-b73febc92d5c
- id: image_scale
- weight: 1
- data:
- width: 100
- height: 100
- upscale: true
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity_document
-id: document
-label: Document
-description: 'Use Document for uploading document files such as PDF.'
-type: document
-queue_thumbnail_downloads: false
-new_revision: false
-type_configuration:
- source_field: field_document
-field_map:
- mime: field_mime_type
- size: field_document_size
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity_slideshow
-id: gallery
-label: Gallery
-description: 'Use Gallery for creating a collection of different media items.'
-type: slideshow
-queue_thumbnail_downloads: false
-new_revision: false
-type_configuration:
- source_field: field_slide
-field_map: { }
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity_image
-id: image
-label: Image
-description: 'Use Image for uploading locally hosted images.'
-type: image
-queue_thumbnail_downloads: false
-new_revision: true
-type_configuration:
- source_field: field_image
- gather_exif: false
-field_map: { }
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity_instagram
-id: instagram
-label: 'Instagram Post'
-description: 'Use this to attach Instagram posts to your content.'
-type: instagram
-queue_thumbnail_downloads: false
-new_revision: false
-type_configuration:
- use_instagram_api: false
- source_field: field_instagram_url
- client_id: ''
-field_map:
- shortcode: field_instagram_shortcode
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - media_entity_twitter
-id: tweet
-label: Tweet
-description: 'Use this to embed Twitter content on your site.'
-type: twitter
-queue_thumbnail_downloads: false
-new_revision: false
-type_configuration:
- use_twitter_api: false
- source_field: field_tweet_url
- consumer_key: ''
- consumer_secret: ''
- oauth_access_token: ''
- oauth_access_token_secret: ''
-field_map:
- id: field_tweet_id
- user: field_tweet_author
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - video_embed_media
-_core:
- default_config_hash: jFflUVocXFBqATOYkClIxBZeuqaCiHiH5B3lwWaCDBY
-id: video
-label: Video
-description: 'Use Video for embedding videos hosted by YouTube, Vimeo, or some other provider.'
-type: video_embed_field
-queue_thumbnail_downloads: false
-new_revision: true
-type_configuration:
- source_field: field_video
-field_map:
- id: field_id
- source_name: field_source
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.media.media_library
- - media_entity.bundle.gallery
- module:
- - entity_browser
- - media_entity
- - user
-id: media_library
-label: 'Media Library'
-module: views
-description: 'Listing of all the media items available.'
-tag: ''
-base_table: media_field_data
-base_field: mid
-core: 8.x
-display:
- default:
- display_plugin: default
- id: default
- display_title: Master
- position: 0
- display_options:
- access:
- type: none
- options: { }
- cache:
- type: tag
- options: { }
- query:
- type: views_query
- options:
- disable_sql_rewrite: false
- distinct: false
- replica: false
- query_comment: ''
- query_tags: { }
- exposed_form:
- type: basic
- options:
- submit_button: Apply
- reset_button: false
- reset_button_label: Reset
- exposed_sorts_label: 'Sort by'
- expose_sort_order: true
- sort_asc_label: Asc
- sort_desc_label: Desc
- pager:
- type: mini
- options:
- items_per_page: 10
- offset: 0
- id: 0
- total_pages: null
- expose:
- items_per_page: false
- items_per_page_label: 'Items per page'
- items_per_page_options: '5, 10, 25, 50'
- items_per_page_options_all: false
- items_per_page_options_all_label: '- All -'
- offset: false
- offset_label: Offset
- tags:
- previous: ‹‹
- next: ››
- style:
- type: default
- options:
- grouping: { }
- row_class: grid-item
- default_row_class: true
- row:
- type: fields
- options:
- inline: { }
- separator: ''
- hide_empty: false
- default_field_elements: true
- fields:
- rendered_entity:
- id: rendered_entity
- table: media
- field: rendered_entity
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- view_mode: media_library
- entity_type: media
- plugin_id: rendered_entity
- filters:
- name:
- id: name
- table: media_field_data
- field: name
- relationship: none
- group_type: group
- admin_label: ''
- operator: contains
- value: ''
- group: 1
- exposed: true
- expose:
- operator_id: name_op
- label: 'Media name'
- description: ''
- use_operator: false
- operator: name_op
- identifier: name
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: name
- plugin_id: string
- bundle:
- id: bundle
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- operator: in
- value: { }
- group: 1
- exposed: true
- expose:
- operator_id: bundle_op
- label: Bundle
- description: ''
- use_operator: false
- operator: bundle_op
- identifier: bundle
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: bundle
- plugin_id: bundle
- status:
- id: status
- table: media_field_data
- field: status
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: true
- expose:
- operator_id: ''
- label: 'Publishing status'
- description: ''
- use_operator: false
- operator: status_op
- identifier: status
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- entity_type: media
- entity_field: status
- sorts:
- created:
- id: created
- table: media_field_data
- field: created
- relationship: none
- group_type: group
- admin_label: ''
- order: DESC
- exposed: true
- expose:
- label: Created
- granularity: second
- entity_type: media
- entity_field: created
- plugin_id: date
- name:
- id: name
- table: media_field_data
- field: name
- relationship: none
- group_type: group
- admin_label: ''
- order: ASC
- exposed: true
- expose:
- label: 'Media name'
- entity_type: media
- entity_field: name
- plugin_id: standard
- header: { }
- footer: { }
- empty: { }
- relationships: { }
- arguments: { }
- display_extenders: { }
- filter_groups:
- operator: AND
- groups:
- 1: AND
- title: 'Media Library'
- cache_metadata:
- max-age: -1
- contexts:
- - 'languages:language_interface'
- - url
- - url.query_args
- - 'url.query_args:sort_by'
- - 'url.query_args:sort_order'
- tags:
- - 'config:core.entity_view_display.media.document.default'
- - 'config:core.entity_view_display.media.document.media_library'
- - 'config:core.entity_view_display.media.gallery.default'
- - 'config:core.entity_view_display.media.gallery.media_library'
- - 'config:core.entity_view_display.media.image.default'
- - 'config:core.entity_view_display.media.image.media_library'
- - 'config:core.entity_view_display.media.instagram.default'
- - 'config:core.entity_view_display.media.instagram.media_library'
- - 'config:core.entity_view_display.media.tweet.default'
- - 'config:core.entity_view_display.media.tweet.media_library'
- - 'config:core.entity_view_display.media.video.default'
- - 'config:core.entity_view_display.media.video.media_library'
- gallery_media_select_modal:
- display_plugin: entity_browser
- id: gallery_media_select_modal
- display_title: 'Gallery media select modal'
- position: 1
- display_options:
- display_extenders: { }
- filters:
- name:
- id: name
- table: media_field_data
- field: name
- relationship: none
- group_type: group
- admin_label: ''
- operator: contains
- value: ''
- group: 1
- exposed: true
- expose:
- operator_id: name_op
- label: 'Media name'
- description: ''
- use_operator: false
- operator: name_op
- identifier: name
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: name
- plugin_id: string
- bundle:
- id: bundle
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- operator: 'not in'
- value:
- gallery: gallery
- group: 1
- exposed: false
- expose:
- operator_id: bundle_op
- label: Bundle
- description: ''
- use_operator: false
- operator: bundle_op
- identifier: bundle
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: bundle
- plugin_id: bundle
- bundle_1:
- id: bundle_1
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- operator: in
- value: { }
- group: 1
- exposed: true
- expose:
- operator_id: bundle_1_op
- label: Bundle
- description: ''
- use_operator: false
- operator: bundle_1_op
- identifier: bundle_1
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: bundle
- plugin_id: bundle
- status:
- id: status
- table: media_field_data
- field: status
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: true
- expose:
- operator_id: ''
- label: 'Publishing status'
- description: ''
- use_operator: false
- operator: status_op
- identifier: status
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- entity_type: media
- entity_field: status
- field_media_in_library_value:
- id: field_media_in_library_value
- table: media__field_media_in_library
- field: field_media_in_library_value
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: false
- expose:
- operator_id: ''
- label: ''
- description: ''
- use_operator: false
- operator: ''
- identifier: ''
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- defaults:
- filters: false
- filter_groups: false
- fields: false
- style: false
- row: false
- access: false
- filter_groups:
- operator: AND
- groups:
- 1: AND
- fields:
- entity_browser_select:
- id: entity_browser_select
- table: media
- field: entity_browser_select
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- entity_type: media
- plugin_id: entity_browser_select
- rendered_entity:
- id: rendered_entity
- table: media
- field: rendered_entity
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- view_mode: media_library
- entity_type: media
- plugin_id: rendered_entity
- display_description: 'An entity browser modal to select media while creating gallery.'
- style:
- type: default
- options:
- grouping: { }
- row_class: grid-item
- default_row_class: true
- row:
- type: fields
- options:
- inline: { }
- separator: ''
- hide_empty: false
- default_field_elements: true
- access:
- type: perm
- options:
- perm: 'access media overview'
- cache_metadata:
- max-age: -1
- contexts:
- - 'languages:language_interface'
- - url
- - url.query_args
- - 'url.query_args:sort_by'
- - 'url.query_args:sort_order'
- - user.permissions
- tags:
- - 'config:core.entity_view_display.media.document.default'
- - 'config:core.entity_view_display.media.document.media_library'
- - 'config:core.entity_view_display.media.gallery.default'
- - 'config:core.entity_view_display.media.gallery.media_library'
- - 'config:core.entity_view_display.media.image.default'
- - 'config:core.entity_view_display.media.image.media_library'
- - 'config:core.entity_view_display.media.instagram.default'
- - 'config:core.entity_view_display.media.instagram.media_library'
- - 'config:core.entity_view_display.media.tweet.default'
- - 'config:core.entity_view_display.media.tweet.media_library'
- - 'config:core.entity_view_display.media.video.default'
- - 'config:core.entity_view_display.media.video.media_library'
- gallery_user_media_select_modal:
- display_plugin: entity_browser
- id: gallery_user_media_select_modal
- display_title: 'Gallery User Media select modal'
- position: 1
- display_options:
- display_extenders: { }
- filters:
- name:
- id: name
- table: media_field_data
- field: name
- relationship: none
- group_type: group
- admin_label: ''
- operator: contains
- value: ''
- group: 1
- exposed: true
- expose:
- operator_id: name_op
- label: 'Media name'
- description: ''
- use_operator: false
- operator: name_op
- identifier: name
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: name
- plugin_id: string
- bundle:
- id: bundle
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- operator: 'not in'
- value:
- gallery: gallery
- group: 1
- exposed: false
- expose:
- operator_id: bundle_op
- label: Bundle
- description: ''
- use_operator: false
- operator: bundle_op
- identifier: bundle
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: bundle
- plugin_id: bundle
- bundle_1:
- id: bundle_1
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- operator: in
- value: { }
- group: 1
- exposed: true
- expose:
- operator_id: bundle_1_op
- label: Bundle
- description: ''
- use_operator: false
- operator: bundle_1_op
- identifier: bundle_1
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: bundle
- plugin_id: bundle
- status:
- id: status
- table: media_field_data
- field: status
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: true
- expose:
- operator_id: ''
- label: 'Publishing status'
- description: ''
- use_operator: false
- operator: status_op
- identifier: status
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- entity_type: media
- entity_field: status
- field_media_in_library_value:
- id: field_media_in_library_value
- table: media__field_media_in_library
- field: field_media_in_library_value
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: false
- expose:
- operator_id: ''
- label: ''
- description: ''
- use_operator: false
- operator: ''
- identifier: ''
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- defaults:
- filters: false
- filter_groups: false
- fields: false
- style: false
- row: false
- access: false
- arguments: false
- relationships: false
- filter_groups:
- operator: AND
- groups:
- 1: AND
- fields:
- entity_browser_select:
- id: entity_browser_select
- table: media
- field: entity_browser_select
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- entity_type: media
- plugin_id: entity_browser_select
- rendered_entity:
- id: rendered_entity
- table: media
- field: rendered_entity
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- view_mode: media_library
- entity_type: media
- plugin_id: rendered_entity
- display_description: 'An entity browser modal to select user media while creating gallery'
- style:
- type: default
- options:
- grouping: { }
- row_class: grid-item
- default_row_class: true
- row:
- type: fields
- options:
- inline: { }
- separator: ''
- hide_empty: false
- default_field_elements: true
- access:
- type: perm
- options:
- perm: 'edit own media content'
- arguments:
- uid:
- id: uid
- table: media_field_data
- field: uid
- relationship: none
- group_type: group
- admin_label: ''
- default_action: default
- exception:
- value: all
- title_enable: false
- title: All
- title_enable: false
- title: ''
- default_argument_type: current_user
- default_argument_options: { }
- default_argument_skip_url: false
- summary_options:
- base_path: ''
- count: true
- items_per_page: 25
- override: false
- summary:
- sort_order: asc
- number_of_records: 0
- format: default_summary
- specify_validation: false
- validate:
- type: none
- fail: 'not found'
- validate_options: { }
- break_phrase: false
- not: false
- entity_type: media
- entity_field: uid
- plugin_id: numeric
- relationships: { }
- cache_metadata:
- max-age: -1
- contexts:
- - 'languages:language_interface'
- - url
- - url.query_args
- - 'url.query_args:sort_by'
- - 'url.query_args:sort_order'
- - user
- - user.permissions
- tags:
- - 'config:core.entity_view_display.media.document.default'
- - 'config:core.entity_view_display.media.document.media_library'
- - 'config:core.entity_view_display.media.gallery.default'
- - 'config:core.entity_view_display.media.gallery.media_library'
- - 'config:core.entity_view_display.media.image.default'
- - 'config:core.entity_view_display.media.image.media_library'
- - 'config:core.entity_view_display.media.instagram.default'
- - 'config:core.entity_view_display.media.instagram.media_library'
- - 'config:core.entity_view_display.media.tweet.default'
- - 'config:core.entity_view_display.media.tweet.media_library'
- - 'config:core.entity_view_display.media.video.default'
- - 'config:core.entity_view_display.media.video.media_library'
- global_media_library_page:
- display_plugin: page
- id: global_media_library_page
- display_title: 'Gobal Media Library'
- position: 2
- display_options:
- display_extenders: { }
- path: admin/content/media
- menu:
- type: tab
- title: Media
- description: 'Displays the media items'
- expanded: false
- parent: ''
- weight: 0
- context: '0'
- menu_name: main
- arguments: { }
- defaults:
- arguments: false
- access: false
- style: false
- row: false
- fields: false
- filters: false
- filter_groups: false
- title: false
- access:
- type: perm
- options:
- perm: 'access media overview'
- display_description: 'View for the global media library.'
- style:
- type: default
- options:
- grouping: { }
- row_class: grid-item-library
- default_row_class: true
- row:
- type: fields
- options:
- inline: { }
- separator: ''
- hide_empty: false
- default_field_elements: true
- fields:
- rendered_entity:
- id: rendered_entity
- table: media
- field: rendered_entity
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- view_mode: media_library
- entity_type: media
- plugin_id: rendered_entity
- bundle:
- id: bundle
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- label: Type
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: true
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- click_sort_column: target_id
- type: entity_reference_label
- settings:
- link: false
- group_column: target_id
- group_columns: { }
- group_rows: true
- delta_limit: 0
- delta_offset: 0
- delta_reversed: false
- delta_first_last: false
- multi_type: separator
- separator: ', '
- field_api_classes: false
- entity_type: media
- entity_field: bundle
- plugin_id: field
- status:
- id: status
- table: media_field_data
- field: status
- relationship: none
- group_type: group
- admin_label: ''
- label: Status
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: true
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- click_sort_column: value
- type: boolean
- settings:
- format: custom
- format_custom_true: Published
- format_custom_false: Unpublished
- group_column: value
- group_columns: { }
- group_rows: true
- delta_limit: 0
- delta_offset: 0
- delta_reversed: false
- delta_first_last: false
- multi_type: separator
- separator: ', '
- field_api_classes: false
- entity_type: media
- entity_field: status
- plugin_id: field
- operations:
- id: operations
- table: media
- field: operations
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- destination: true
- entity_type: media
- plugin_id: entity_operations
- filters:
- name:
- id: name
- table: media_field_data
- field: name
- relationship: none
- group_type: group
- admin_label: ''
- operator: contains
- value: ''
- group: 1
- exposed: true
- expose:
- operator_id: name_op
- label: 'Media name'
- description: ''
- use_operator: false
- operator: name_op
- identifier: name
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: name
- plugin_id: string
- bundle:
- id: bundle
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- operator: in
- value: { }
- group: 1
- exposed: true
- expose:
- operator_id: bundle_op
- label: Bundle
- description: ''
- use_operator: false
- operator: bundle_op
- identifier: bundle
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: bundle
- plugin_id: bundle
- status:
- id: status
- table: media_field_data
- field: status
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: true
- expose:
- operator_id: ''
- label: 'Publishing status'
- description: ''
- use_operator: false
- operator: status_op
- identifier: status
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- entity_type: media
- entity_field: status
- langcode:
- id: langcode
- table: media_field_data
- field: langcode
- relationship: none
- group_type: group
- admin_label: ''
- operator: in
- value: { }
- group: 1
- exposed: true
- expose:
- operator_id: langcode_op
- label: Language
- description: ''
- use_operator: false
- operator: langcode_op
- identifier: langcode
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: langcode
- plugin_id: language
- filter_groups:
- operator: AND
- groups:
- 1: AND
- title: 'Media Library'
- cache_metadata:
- max-age: -1
- contexts:
- - 'languages:language_content'
- - 'languages:language_interface'
- - url
- - url.query_args
- - 'url.query_args:sort_by'
- - 'url.query_args:sort_order'
- - user.permissions
- tags:
- - 'config:core.entity_view_display.media.document.default'
- - 'config:core.entity_view_display.media.document.media_library'
- - 'config:core.entity_view_display.media.gallery.default'
- - 'config:core.entity_view_display.media.gallery.media_library'
- - 'config:core.entity_view_display.media.image.default'
- - 'config:core.entity_view_display.media.image.media_library'
- - 'config:core.entity_view_display.media.instagram.default'
- - 'config:core.entity_view_display.media.instagram.media_library'
- - 'config:core.entity_view_display.media.tweet.default'
- - 'config:core.entity_view_display.media.tweet.media_library'
- - 'config:core.entity_view_display.media.video.default'
- - 'config:core.entity_view_display.media.video.media_library'
- media_select_modal:
- display_plugin: entity_browser
- id: media_select_modal
- display_title: 'Media select modal'
- position: 1
- display_options:
- display_extenders: { }
- filters:
- name:
- id: name
- table: media_field_data
- field: name
- relationship: none
- group_type: group
- admin_label: ''
- operator: contains
- value: ''
- group: 1
- exposed: true
- expose:
- operator_id: name_op
- label: 'Media name'
- description: ''
- use_operator: false
- operator: name_op
- identifier: name
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: name
- plugin_id: string
- bundle:
- id: bundle
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- operator: in
- value: { }
- group: 1
- exposed: true
- expose:
- operator_id: bundle_op
- label: Bundle
- description: ''
- use_operator: false
- operator: bundle_op
- identifier: bundle
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: bundle
- plugin_id: bundle
- status:
- id: status
- table: media_field_data
- field: status
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: true
- expose:
- operator_id: ''
- label: 'Publishing status'
- description: ''
- use_operator: false
- operator: status_op
- identifier: status
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- entity_type: media
- entity_field: status
- field_media_in_library_value:
- id: field_media_in_library_value
- table: media__field_media_in_library
- field: field_media_in_library_value
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: false
- expose:
- operator_id: ''
- label: ''
- description: ''
- use_operator: false
- operator: ''
- identifier: ''
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- defaults:
- filters: false
- filter_groups: false
- fields: false
- style: false
- row: false
- access: false
- filter_groups:
- operator: AND
- groups:
- 1: AND
- fields:
- entity_browser_select:
- id: entity_browser_select
- table: media
- field: entity_browser_select
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- entity_type: media
- plugin_id: entity_browser_select
- rendered_entity:
- id: rendered_entity
- table: media
- field: rendered_entity
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- view_mode: media_library
- entity_type: media
- plugin_id: rendered_entity
- display_description: 'An entity browser modal to select media.'
- style:
- type: default
- options:
- grouping: { }
- row_class: grid-item
- default_row_class: true
- row:
- type: fields
- options:
- inline: { }
- separator: ''
- hide_empty: false
- default_field_elements: true
- access:
- type: perm
- options:
- perm: 'access media overview'
- cache_metadata:
- max-age: -1
- contexts:
- - 'languages:language_interface'
- - url
- - url.query_args
- - 'url.query_args:sort_by'
- - 'url.query_args:sort_order'
- - user.permissions
- tags:
- - 'config:core.entity_view_display.media.document.default'
- - 'config:core.entity_view_display.media.document.media_library'
- - 'config:core.entity_view_display.media.gallery.default'
- - 'config:core.entity_view_display.media.gallery.media_library'
- - 'config:core.entity_view_display.media.image.default'
- - 'config:core.entity_view_display.media.image.media_library'
- - 'config:core.entity_view_display.media.instagram.default'
- - 'config:core.entity_view_display.media.instagram.media_library'
- - 'config:core.entity_view_display.media.tweet.default'
- - 'config:core.entity_view_display.media.tweet.media_library'
- - 'config:core.entity_view_display.media.video.default'
- - 'config:core.entity_view_display.media.video.media_library'
- user_media_library:
- display_plugin: page
- id: user_media_library
- display_title: 'User Media Library'
- position: 2
- display_options:
- display_extenders: { }
- path: user/%user/media
- menu:
- type: tab
- title: Media
- description: 'Displays the media items by the user'
- expanded: false
- parent: user.page
- weight: 0
- context: '0'
- menu_name: account
- arguments:
- uid:
- id: uid
- table: media_field_data
- field: uid
- relationship: none
- group_type: group
- admin_label: ''
- default_action: default
- exception:
- value: all
- title_enable: false
- title: All
- title_enable: false
- title: ''
- default_argument_type: user
- default_argument_options:
- user: false
- default_argument_skip_url: false
- summary_options:
- base_path: ''
- count: true
- items_per_page: 25
- override: false
- summary:
- sort_order: asc
- number_of_records: 0
- format: default_summary
- specify_validation: false
- validate:
- type: none
- fail: 'not found'
- validate_options: { }
- break_phrase: false
- not: false
- entity_type: media
- entity_field: uid
- plugin_id: numeric
- defaults:
- arguments: false
- access: false
- style: false
- row: false
- fields: false
- filters: false
- filter_groups: false
- access:
- type: perm
- options:
- perm: 'edit own media content'
- display_description: 'A page on the user profile to display media items by the user.'
- style:
- type: default
- options:
- grouping: { }
- row_class: grid-item-library
- default_row_class: true
- row:
- type: fields
- options:
- inline: { }
- separator: ''
- hide_empty: false
- default_field_elements: true
- fields:
- rendered_entity:
- id: rendered_entity
- table: media
- field: rendered_entity
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- view_mode: media_library
- entity_type: media
- plugin_id: rendered_entity
- bundle:
- id: bundle
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- label: Type
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: true
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- click_sort_column: target_id
- type: entity_reference_label
- settings:
- link: false
- group_column: target_id
- group_columns: { }
- group_rows: true
- delta_limit: 0
- delta_offset: 0
- delta_reversed: false
- delta_first_last: false
- multi_type: separator
- separator: ', '
- field_api_classes: false
- entity_type: media
- entity_field: bundle
- plugin_id: field
- status:
- id: status
- table: media_field_data
- field: status
- relationship: none
- group_type: group
- admin_label: ''
- label: Status
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: true
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- click_sort_column: value
- type: boolean
- settings:
- format: custom
- format_custom_true: Published
- format_custom_false: Unpublished
- group_column: value
- group_columns: { }
- group_rows: true
- delta_limit: 0
- delta_offset: 0
- delta_reversed: false
- delta_first_last: false
- multi_type: separator
- separator: ', '
- field_api_classes: false
- entity_type: media
- entity_field: status
- plugin_id: field
- operations:
- id: operations
- table: media
- field: operations
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- destination: true
- entity_type: media
- plugin_id: entity_operations
- filters:
- name:
- id: name
- table: media_field_data
- field: name
- relationship: none
- group_type: group
- admin_label: ''
- operator: contains
- value: ''
- group: 1
- exposed: true
- expose:
- operator_id: name_op
- label: 'Media name'
- description: ''
- use_operator: false
- operator: name_op
- identifier: name
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: name
- plugin_id: string
- bundle:
- id: bundle
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- operator: in
- value: { }
- group: 1
- exposed: true
- expose:
- operator_id: bundle_op
- label: Bundle
- description: ''
- use_operator: false
- operator: bundle_op
- identifier: bundle
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: bundle
- plugin_id: bundle
- status:
- id: status
- table: media_field_data
- field: status
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: true
- expose:
- operator_id: ''
- label: 'Publishing status'
- description: ''
- use_operator: false
- operator: status_op
- identifier: status
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- entity_type: media
- entity_field: status
- langcode:
- id: langcode
- table: media_field_data
- field: langcode
- relationship: none
- group_type: group
- admin_label: ''
- operator: in
- value: { }
- group: 1
- exposed: true
- expose:
- operator_id: langcode_op
- label: Language
- description: ''
- use_operator: false
- operator: langcode_op
- identifier: langcode
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: langcode
- plugin_id: language
- filter_groups:
- operator: AND
- groups:
- 1: AND
- cache_metadata:
- max-age: -1
- contexts:
- - 'languages:language_content'
- - 'languages:language_interface'
- - url
- - url.query_args
- - 'url.query_args:sort_by'
- - 'url.query_args:sort_order'
- - user.permissions
- tags:
- - 'config:core.entity_view_display.media.document.default'
- - 'config:core.entity_view_display.media.document.media_library'
- - 'config:core.entity_view_display.media.gallery.default'
- - 'config:core.entity_view_display.media.gallery.media_library'
- - 'config:core.entity_view_display.media.image.default'
- - 'config:core.entity_view_display.media.image.media_library'
- - 'config:core.entity_view_display.media.instagram.default'
- - 'config:core.entity_view_display.media.instagram.media_library'
- - 'config:core.entity_view_display.media.tweet.default'
- - 'config:core.entity_view_display.media.tweet.media_library'
- - 'config:core.entity_view_display.media.video.default'
- - 'config:core.entity_view_display.media.video.media_library'
- user_media_select_modal:
- display_plugin: entity_browser
- id: user_media_select_modal
- display_title: 'User Media select modal'
- position: 1
- display_options:
- display_extenders: { }
- filters:
- name:
- id: name
- table: media_field_data
- field: name
- relationship: none
- group_type: group
- admin_label: ''
- operator: contains
- value: ''
- group: 1
- exposed: true
- expose:
- operator_id: name_op
- label: 'Media name'
- description: ''
- use_operator: false
- operator: name_op
- identifier: name
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: name
- plugin_id: string
- bundle:
- id: bundle
- table: media_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- operator: in
- value: { }
- group: 1
- exposed: true
- expose:
- operator_id: bundle_op
- label: Bundle
- description: ''
- use_operator: false
- operator: bundle_op
- identifier: bundle
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: media
- entity_field: bundle
- plugin_id: bundle
- status:
- id: status
- table: media_field_data
- field: status
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: true
- expose:
- operator_id: ''
- label: 'Publishing status'
- description: ''
- use_operator: false
- operator: status_op
- identifier: status
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- administrator: '0'
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- entity_type: media
- entity_field: status
- field_media_in_library_value:
- id: field_media_in_library_value
- table: media__field_media_in_library
- field: field_media_in_library_value
- relationship: none
- group_type: group
- admin_label: ''
- operator: '='
- value: true
- group: 1
- exposed: false
- expose:
- operator_id: ''
- label: ''
- description: ''
- use_operator: false
- operator: ''
- identifier: ''
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- plugin_id: boolean
- defaults:
- filters: false
- filter_groups: false
- fields: false
- style: false
- row: false
- access: false
- arguments: false
- relationships: false
- filter_groups:
- operator: AND
- groups:
- 1: AND
- fields:
- entity_browser_select:
- id: entity_browser_select
- table: media
- field: entity_browser_select
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- entity_type: media
- plugin_id: entity_browser_select
- rendered_entity:
- id: rendered_entity
- table: media
- field: rendered_entity
- relationship: none
- group_type: group
- admin_label: ''
- label: ''
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- view_mode: media_library
- entity_type: media
- plugin_id: rendered_entity
- display_description: 'An entity browser modal to select user media'
- style:
- type: default
- options:
- grouping: { }
- row_class: grid-item
- default_row_class: true
- row:
- type: fields
- options:
- inline: { }
- separator: ''
- hide_empty: false
- default_field_elements: true
- access:
- type: perm
- options:
- perm: 'edit own media content'
- arguments:
- uid:
- id: uid
- table: media_field_data
- field: uid
- relationship: none
- group_type: group
- admin_label: ''
- default_action: default
- exception:
- value: all
- title_enable: false
- title: All
- title_enable: false
- title: ''
- default_argument_type: current_user
- default_argument_options: { }
- default_argument_skip_url: false
- summary_options:
- base_path: ''
- count: true
- items_per_page: 25
- override: false
- summary:
- sort_order: asc
- number_of_records: 0
- format: default_summary
- specify_validation: false
- validate:
- type: none
- fail: 'not found'
- validate_options: { }
- break_phrase: false
- not: false
- entity_type: media
- entity_field: uid
- plugin_id: numeric
- relationships: { }
- cache_metadata:
- max-age: -1
- contexts:
- - 'languages:language_interface'
- - url
- - url.query_args
- - 'url.query_args:sort_by'
- - 'url.query_args:sort_order'
- - user
- - user.permissions
- tags:
- - 'config:core.entity_view_display.media.document.default'
- - 'config:core.entity_view_display.media.document.media_library'
- - 'config:core.entity_view_display.media.gallery.default'
- - 'config:core.entity_view_display.media.gallery.media_library'
- - 'config:core.entity_view_display.media.image.default'
- - 'config:core.entity_view_display.media.image.media_library'
- - 'config:core.entity_view_display.media.instagram.default'
- - 'config:core.entity_view_display.media.instagram.media_library'
- - 'config:core.entity_view_display.media.tweet.default'
- - 'config:core.entity_view_display.media.tweet.media_library'
- - 'config:core.entity_view_display.media.video.default'
- - 'config:core.entity_view_display.media.video.media_library'
+++ /dev/null
-.view-content, .entities-list{
- margin: 1.5em 0;
- padding: 0;
- -moz-column-gap: 1.5em;
- -webkit-column-gap: 1.5em;
- column-gap: 1.5em;
-}
-.grid-item:hover {
- border: 2px solid #37802f !important;
- cursor : pointer;
-}
-
-.grid-item.checked {
- border: 2px solid #37802f !important;
- background: url("../images/checkmark.svg") no-repeat center center !important;
-}
-.grid-item img, .grid-item-library img {
- vertical-align: bottom;
-}
-
-.grid-item img::selection , .grid-item-library img::selection{
- background: transparent;
-}
-
-.views-field-entity-browser-select{
- display: none;
-}
-
-.grid-item-library, .grid-item, .item-container{
- display: inline-block;
- background: #fff;
- padding: 1.5em;
- margin: 0 0 1.5em;
- width: 100%;
- box-sizing: border-box;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.18);
- border-radius: 3px;
- border: 1px solid #ddd;
- text-align:center;
- -moz-border-radius: 3px;
- -webkit-border-radius: 3px;
-}
-@media only screen and (min-width: 700px) {
- .view-content, .entities-list{
- -moz-column-count: 1;
- -webkit-column-count: 1;
- column-count: 1;
- }
-}
-
-@media only screen and (min-width: 900px) {
- .view-content, .entities-list{
- -moz-column-count: 2;
- -webkit-column-count: 2;
- column-count: 2;
- }
-}
-
-@media only screen and (min-width: 1100px) {
- .view-content, .entities-list{
- -moz-column-count: 4;
- -webkit-column-count: 4;
- column-count: 4;
- }
-}
-#edit-actions{
- text-align:center;
-}
+++ /dev/null
-#!/bin/bash
-
-# Add an optional statement to see that this is running in Travis CI.
-echo "running drupal_ti/before/before_script.sh"
-
-set -e $DRUPAL_TI_DEBUG
-
-# Ensure the right Drupal version is installed.
-# The first time this is run, it will install Drupal.
-# Note: This function is re-entrant.
-drupal_ti_ensure_drupal
-
-# Change to the Drupal directory
-cd "$DRUPAL_TI_DRUPAL_DIR"
-
-# Create the the module directory (only necessary for D7)
-# For D7, this is sites/default/modules
-# For D8, this is modules
-mkdir -p "$DRUPAL_TI_DRUPAL_DIR/$DRUPAL_TI_LIBRARIES_PATH"
-cd "$DRUPAL_TI_DRUPAL_DIR"
-
-# Manually clone the dependencies
-mkdir libraries
-cd libraries
-git clone --depth 1 https://github.com/enyo/dropzone.git
-
+++ /dev/null
-{\rtf1\ansi\ansicpg1252\uc0\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deff0\adeff0{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\froman\fcharset2\fprq2{\*\panose 05050102010706020507}Symbol;}{\f2\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;}}{\colortbl;\red0\green0\blue0;\red67\green67\blue67\r
-;\red102\green102\blue102;}{\stylesheet{\s0\snext0\sqformat\spriority0\fi0\sb0\sa0\aspalpha\aspnum\adjustright\widctlpar\ltrpar\li0\lin0\ri0\rin0\ql\faauto\sl276\slmult1\rtlch\ab0\ai0\af2\afs22\ltrch\b0\i0\fs22\loch\af2\dbch\af2\hich\f2\strike0\ulnone\cf1 Normal;}{\s1\sbasedon0\snext0\styrsid15694742\r
-\sqformat\spriority0\keep\keepn\fi0\sb400\sa120\aspalpha\aspnum\adjustright\widctlpar\ltrpar\li0\lin0\ri0\rin0\ql\faauto\sl276\slmult1\rtlch\ab0\ai0\af2\afs40\ltrch\b0\i0\fs40\loch\af2\dbch\af2\hich\f2\strike0\ulnone\cf1 heading 1;}{\s2\sbasedon0\snext0\styrsid15694742\r
-\sqformat\spriority0\keep\keepn\fi0\sb360\sa120\aspalpha\aspnum\adjustright\widctlpar\ltrpar\li0\lin0\ri0\rin0\ql\faauto\sl276\slmult1\rtlch\ab0\ai0\af2\afs32\ltrch\b0\i0\fs32\loch\af2\dbch\af2\hich\f2\strike0\ulnone\cf1 heading 2;}{\s3\sbasedon0\snext0\styrsid15694742\r
-\sqformat\spriority0\keep\keepn\fi0\sb320\sa80\aspalpha\aspnum\adjustright\widctlpar\ltrpar\li0\lin0\ri0\rin0\ql\faauto\sl276\slmult1\rtlch\ab0\ai0\af2\afs28\ltrch\b0\i0\fs28\loch\af2\dbch\af2\hich\f2\strike0\ulnone\cf2 heading 3;}{\s4\sbasedon0\snext0\styrsid15694742\r
-\sqformat\spriority0\keep\keepn\fi0\sb280\sa80\aspalpha\aspnum\adjustright\widctlpar\ltrpar\li0\lin0\ri0\rin0\ql\faauto\sl276\slmult1\rtlch\ab0\ai0\af2\afs24\ltrch\b0\i0\fs24\loch\af2\dbch\af2\hich\f2\strike0\ulnone\cf3 heading 4;}{\s5\sbasedon0\snext0\styrsid15694742\r
-\sqformat\spriority0\keep\keepn\fi0\sb240\sa80\aspalpha\aspnum\adjustright\widctlpar\ltrpar\li0\lin0\ri0\rin0\ql\faauto\sl276\slmult1\rtlch\ab0\ai0\af2\afs22\ltrch\b0\i0\fs22\loch\af2\dbch\af2\hich\f2\strike0\ulnone\cf3 heading 5;}{\s6\sbasedon0\snext0\styrsid15694742\r
-\sqformat\spriority0\keep\keepn\fi0\sb240\sa80\aspalpha\aspnum\adjustright\widctlpar\ltrpar\li0\lin0\ri0\rin0\ql\faauto\sl276\slmult1\rtlch\ab0\ai\af2\afs22\ltrch\b0\i\fs22\loch\af2\dbch\af2\hich\f2\strike0\ulnone\cf3 heading 6;}{\*\cs10\additive\ssemihidden\spriority0 Default Paragraph Font\r
-;}{\s15\sbasedon0\snext15\styrsid15694742\sqformat\spriority0\keep\keepn\fi0\sb0\sa60\aspalpha\aspnum\adjustright\widctlpar\ltrpar\li0\lin0\ri0\rin0\ql\faauto\sl276\slmult1\rtlch\ab0\ai0\af2\afs52\ltrch\b0\i0\fs52\loch\af2\dbch\af2\hich\f2\strike0\r
-\ulnone\cf1 Title;}{\s16\sbasedon0\snext16\styrsid15694742\sqformat\spriority0\keep\keepn\fi0\sb0\sa320\aspalpha\aspnum\adjustright\widctlpar\ltrpar\li0\lin0\ri0\rin0\ql\faauto\sl276\slmult1\rtlch\ab0\ai0\af2\afs30\ltrch\b0\i0\fs30\loch\af2\dbch\af2\hich\f2\strike0\r
-\ulnone\cf3 Subtitle;}}{\*\rsidtbl\rsid10976062}{\*\generator Aspose.Words for Java 13.10.0.0;}{\info\version1\edmins0\nofpages1\nofwords0\nofchars0\nofcharsws0}{\mmathPr\mbrkBin0\mbrkBinSub0\mdefJc1\mdispDef1\minterSp0\mintLim0\mintraSp0\mlMargin0\mmathFont0\mnaryLim1\mpostSp0\mpreSp0\mrMargin0\msmallFrac0\mwrapIndent1440\mwrapRight0}\r
-\deflang1033\deflangfe2052\adeflang1025\jexpand\showxmlerrors1\validatexml1{\*\wgrffmtfilter 013f}\viewkind1\viewscale100\fet0\ftnbj\aenddoc\ftnrstcont\aftnrstcont\ftnnar\aftnnrlc\widowctrl\nospaceforul\nolnhtadjtbl\alntblind\lyttblrtgr\dntblnsbdb\noxlattoyen\r
-\wrppunct\nobrkwrptbl\expshrtn\snaptogridincell\asianbrkrule\htmautsp\noultrlspc\useltbaln\splytwnine\ftnlytwnine\lytcalctblwd\allowfieldendsel\lnbrkrule\nouicompat\nofeaturethrottle1\formshade\nojkernpunct\dghspace180\dgvspace180\dghorigin1800\dgvorigin1440\dghshow1\dgvshow1\r
-\dgmargin\pgbrdrhead\pgbrdrfoot\sectd\sectlinegrid360\pgwsxn11909\pghsxn16834\marglsxn1440\margrsxn1440\margtsxn1440\margbsxn1440\guttersxn0\headery708\footery708\colsx708\ltrsect\pard\plain\itap0\s0\ilvl0\fi0\sb0\sa0\aspalpha\aspnum\adjustright\brdrt\brdrl\brdrb\brdrr\brdrbtw\brdrbar\r
-\widctlpar\ltrpar\li0\lin0\ri0\rin0\ql\faauto\sl276\slmult1\rtlch\ab0\ai0\af2\afs22\ltrch\b0\i0\fs22\loch\af2\dbch\af2\hich\f2\strike0\ulnone\cf1{\rtlch\ab0\ai0\af2\afs22\ltrch\b0\i0\fs22\loch\af2\dbch\af2\hich\f2\strike0\ulnone\cf1 Test}{\rtlch\ab0\ai0\af2\afs22\r
-\ltrch\b0\i0\fs22\loch\af2\dbch\af2\hich\f2\insrsid10976062\strike0\ulnone\cf1\par}{\*\latentstyles\lsdstimax267\lsdlockeddef0\lsdsemihiddendef0\lsdunhideuseddef0\lsdqformatdef0\lsdprioritydef0{\lsdlockedexcept\lsdqformat1 Normal;\lsdqformat1 heading 1;\lsdsemihidden1\lsdunhideused1\lsdqformat1 heading 2;\lsdsemihidden1\lsdunhideused1\lsdqformat1 heading 3\r
-;\lsdsemihidden1\lsdunhideused1\lsdqformat1 heading 4;\lsdsemihidden1\lsdunhideused1\lsdqformat1 heading 5;\lsdsemihidden1\lsdunhideused1\lsdqformat1 heading 6;\lsdsemihidden1\lsdunhideused1\lsdqformat1 heading 7;\lsdsemihidden1\lsdunhideused1\lsdqformat1 heading 8\r
-;\lsdsemihidden1\lsdunhideused1\lsdqformat1 heading 9;\lsdsemihidden1\lsdunhideused1\lsdqformat1 caption;\lsdqformat1 Title;\lsdqformat1 Subtitle;\lsdqformat1 Strong;\lsdqformat1 Emphasis;\lsdsemihidden1\lsdpriority99 Placeholder Text;\lsdqformat1\lsdpriority1 No Spacing\r
-;\lsdpriority60 Light Shading;\lsdpriority61 Light List;\lsdpriority62 Light Grid;\lsdpriority63 Medium Shading 1;\lsdpriority64 Medium Shading 2;\lsdpriority65 Medium List 1;\lsdpriority66 Medium List 2;\lsdpriority67 Medium Grid 1;\lsdpriority68 Medium Grid 2\r
-;\lsdpriority69 Medium Grid 3;\lsdpriority70 Dark List;\lsdpriority71 Colorful Shading;\lsdpriority72 Colorful List;\lsdpriority73 Colorful Grid;\lsdpriority60 Light Shading Accent 1;\lsdpriority61 Light List Accent 1;\lsdpriority62 Light Grid Accent 1;\lsdpriority63 Medium Shading 1 Accent 1\r
-;\lsdpriority64 Medium Shading 2 Accent 1;\lsdpriority65 Medium List 1 Accent 1;\lsdsemihidden1\lsdpriority99 Revision;\lsdqformat1\lsdpriority34 List Paragraph;\lsdqformat1\lsdpriority29 Quote;\lsdqformat1\lsdpriority30 Intense Quote;\lsdpriority66 Medium List 2 Accent 1\r
-;\lsdpriority67 Medium Grid 1 Accent 1;\lsdpriority68 Medium Grid 2 Accent 1;\lsdpriority69 Medium Grid 3 Accent 1;\lsdpriority70 Dark List Accent 1;\lsdpriority71 Colorful Shading Accent 1;\lsdpriority72 Colorful List Accent 1;\lsdpriority73 Colorful Grid Accent 1\r
-;\lsdpriority60 Light Shading Accent 2;\lsdpriority61 Light List Accent 2;\lsdpriority62 Light Grid Accent 2;\lsdpriority63 Medium Shading 1 Accent 2;\lsdpriority64 Medium Shading 2 Accent 2;\lsdpriority65 Medium List 1 Accent 2;\lsdpriority66 Medium List 2 Accent 2\r
-;\lsdpriority67 Medium Grid 1 Accent 2;\lsdpriority68 Medium Grid 2 Accent 2;\lsdpriority69 Medium Grid 3 Accent 2;\lsdpriority70 Dark List Accent 2;\lsdpriority71 Colorful Shading Accent 2;\lsdpriority72 Colorful List Accent 2;\lsdpriority73 Colorful Grid Accent 2\r
-;\lsdpriority60 Light Shading Accent 3;\lsdpriority61 Light List Accent 3;\lsdpriority62 Light Grid Accent 3;\lsdpriority63 Medium Shading 1 Accent 3;\lsdpriority64 Medium Shading 2 Accent 3;\lsdpriority65 Medium List 1 Accent 3;\lsdpriority66 Medium List 2 Accent 3\r
-;\lsdpriority67 Medium Grid 1 Accent 3;\lsdpriority68 Medium Grid 2 Accent 3;\lsdpriority69 Medium Grid 3 Accent 3;\lsdpriority70 Dark List Accent 3;\lsdpriority71 Colorful Shading Accent 3;\lsdpriority72 Colorful List Accent 3;\lsdpriority73 Colorful Grid Accent 3\r
-;\lsdpriority60 Light Shading Accent 4;\lsdpriority61 Light List Accent 4;\lsdpriority62 Light Grid Accent 4;\lsdpriority63 Medium Shading 1 Accent 4;\lsdpriority64 Medium Shading 2 Accent 4;\lsdpriority65 Medium List 1 Accent 4;\lsdpriority66 Medium List 2 Accent 4\r
-;\lsdpriority67 Medium Grid 1 Accent 4;\lsdpriority68 Medium Grid 2 Accent 4;\lsdpriority69 Medium Grid 3 Accent 4;\lsdpriority70 Dark List Accent 4;\lsdpriority71 Colorful Shading Accent 4;\lsdpriority72 Colorful List Accent 4;\lsdpriority73 Colorful Grid Accent 4\r
-;\lsdpriority60 Light Shading Accent 5;\lsdpriority61 Light List Accent 5;\lsdpriority62 Light Grid Accent 5;\lsdpriority63 Medium Shading 1 Accent 5;\lsdpriority64 Medium Shading 2 Accent 5;\lsdpriority65 Medium List 1 Accent 5;\lsdpriority66 Medium List 2 Accent 5\r
-;\lsdpriority67 Medium Grid 1 Accent 5;\lsdpriority68 Medium Grid 2 Accent 5;\lsdpriority69 Medium Grid 3 Accent 5;\lsdpriority70 Dark List Accent 5;\lsdpriority71 Colorful Shading Accent 5;\lsdpriority72 Colorful List Accent 5;\lsdpriority73 Colorful Grid Accent 5\r
-;\lsdpriority60 Light Shading Accent 6;\lsdpriority61 Light List Accent 6;\lsdpriority62 Light Grid Accent 6;\lsdpriority63 Medium Shading 1 Accent 6;\lsdpriority64 Medium Shading 2 Accent 6;\lsdpriority65 Medium List 1 Accent 6;\lsdpriority66 Medium List 2 Accent 6\r
-;\lsdpriority67 Medium Grid 1 Accent 6;\lsdpriority68 Medium Grid 2 Accent 6;\lsdpriority69 Medium Grid 3 Accent 6;\lsdpriority70 Dark List Accent 6;\lsdpriority71 Colorful Shading Accent 6;\lsdpriority72 Colorful List Accent 6;\lsdpriority73 Colorful Grid Accent 6\r
-;\lsdqformat1\lsdpriority19 Subtle Emphasis;\lsdqformat1\lsdpriority21 Intense Emphasis;\lsdqformat1\lsdpriority31 Subtle Reference;\lsdqformat1\lsdpriority32 Intense Reference;\lsdqformat1\lsdpriority33 Book Title;\lsdsemihidden1\lsdunhideused1\lsdpriority37 Bibliography\r
-;\lsdsemihidden1\lsdunhideused1\lsdqformat1\lsdpriority39 TOC Heading;}}}
\ No newline at end of file
+++ /dev/null
-Test
\ No newline at end of file
+++ /dev/null
-<svg width="105" height="105" xmlns="http://www.w3.org/2000/svg">
- <g>
- <title>Layer 1</title>
- <circle filter="url(#svg_3_blur)" r="51.5" cy="52.9" cx="52.55" fill="#000000" id="svg_3" fill-opacity="0.1"/>
- <circle id="svg_1" r="50" cy="51" cx="52.5" fill="#FFFFFF" fill-opacity="0.7"/>
- <polygon id="svg_2" points="18.963001251220703,50.50800323486328 29.856000900268555,39.61499786376953 45.177001953125,54.93199920654297 75.13899993896484,24.972000122070312 86.13700103759766,35.974002838134766 45.285003662109375,76.8280029296875 " fill-opacity="0.7" fill="black"/>
- </g>
- <defs>
- <filter id="svg_3_blur" x="-50%" y="-50%" width="200%" height="200%">
- <feGaussianBlur stdDeviation="1.8"/>
- </filter>
- </defs>
- <filter id="drop-shadow">
- <feGaussianBlur stdDeviation="2.2"/>
- </filter>
-</svg>
+++ /dev/null
-/**
- * @file media.view.js
- */
-(function ($, Drupal) {
-
- "use strict";
-
- /**
- * Registers behaviours related to view widget.
- */
-
- Drupal.behaviors.MediaLibraryView = {
- attach: function (context, settings) {
- $('.item-container').css("display", "inline-block");
- $('.grid-item').once('bind-click-event').click(function () {
- var input = $(this).find('.views-field-entity-browser-select input');
- input.prop('checked', !input.prop('checked'));
- if (input.prop('checked')) {
- $(this).addClass('checked');
- var render = $(this).find('.views-field-rendered-entity');
- $(render).css('opacity',0.3);
- }
- else {
- $(this).removeClass('checked');
- var render = $(this).find('.views-field-rendered-entity');
- $(render).css('opacity',1);
- }
- });
- }
- };
-
-}(jQuery, Drupal));
+++ /dev/null
-name: Media
-description: 'Media module for Drupal 8'
-type: module
-package: Media
-core: 8.x
-dependencies:
- - media_entity:media_entity
- - media_entity_image:media_entity_image
- - video_embed_field:video_embed_field
- - video_embed_field:video_embed_media
- - media_entity_slideshow:media_entity_slideshow
- - media_entity_instagram:media_entity_instagram
- - media_entity_twitter:media_entity_twitter
- - media_entity_document:media_entity_document
- - slick_media:slick_media
- - entity_browser:entity_browser
- - entity_browser:entity_browser_entity_form
- - entity_embed:entity_embed
- - dropzonejs:dropzonejs_eb_widget
- - image_widget_crop:image_widget_crop
- - drupal:link
- - drupal:editor
- - inline_entity_form:inline_entity_form
-test_dependencies:
- - media_entity:media_entity
- - media_entity_image:media_entity_image
- - video_embed_field:video_embed_field
- - video_embed_field:video_embed_media
- - media_entity_slideshow:media_entity_slideshow
- - media_entity_instagram:media_entity_instagram
- - media_entity_twitter:media_entity_twitter
- - media_entity_document:media_entity_document
- - slick_media:slick_media
- - entity_browser:entity_browser
- - entity_browser:entity_browser_entity_form
- - entity_embed:entity_embed
- - dropzonejs:dropzonejs_eb_widget
- - image_widget_crop:image_widget_crop
- - drupal:link
- - drupal:editor
- - inline_entity_form:inline_entity_form
-
+++ /dev/null
-<?php
-
-/**
- * @file
- * Defines library requirements for Media module.
- */
-
-use Drupal\views\Entity\View;
-use \Drupal\Core\Config\ExtensionInstallStorage;
-use Drupal\editor\Entity\Editor;
-
-/**
- * Implements hook_install().
- */
-function media_install() {
- // Disable the media view provided by media_entity.
- if ($view = View::load('media')) {
- $view->set('status', FALSE);
- $view->save();
- }
-
- // Copy the document icon files.
- $source = drupal_get_path('module', 'media') . '/images/icons';
- $destination = \Drupal::config('media_entity.settings')->get('icon_base');
- media_entity_copy_icons($source, $destination);
-
- if (!\Drupal::isConfigSyncing()) {
- // Add an icon for Media if we aren't installing from configuration.
- // Read more about this implementation: https://www.drupal.org/node/2696593
- $data = file_get_contents(dirname(__FILE__) . '/images/media_embed_icon.png');
- $file = file_save_data($data, 'public://media_embed_icon.png', FILE_EXISTS_REPLACE);
- // Set file uuid same as default config.
- $uuid = (new ExtensionInstallStorage(\Drupal::service('config.storage')))->read('embed.button.media')['icon_uuid'];
- $file->set('uuid', $uuid);
- $file->save();
- }
-
- // Enable the media embed button and modify filters.
- $filter_formats = \Drupal::entityTypeManager()->getStorage('filter_format')->loadByProperties(array('status' => TRUE));
- foreach ($filter_formats as $filter_format) {
- $editor = Editor::load($filter_format->getOriginalId());
- if ($editor) {
- // Make the changes to editor and filters only if editor type exists.
- $editor_settings = $editor->getSettings();
- $editor_settings['toolbar']['rows'][0][3]['items'][] = 'media';
- $editor->setSettings($editor_settings);
- $editor->save();
- $format = $editor->getFilterFormat();
- if ($format->filters('filter_html')->settings['allowed_html']) {
- $format->filters('filter_html')->settings['allowed_html'] .= '<drupal-entity data-entity-type data-entity-uuid data-view-mode data-entity-embed-display data-entity-embed-display-settings data-align data-caption data-embed-button>';
- }
- $format->setFilterConfig('entity_embed', ['status' => 1]);
- $format->setFilterConfig('filter_html_image_secure', ['status' => 0]);
- $format->save();
- }
- }
-}
+++ /dev/null
-view:
- version: VERSION
- js:
- js/media.view.js: {}
- css:
- theme:
- css/media.view.css: {}
- dependencies:
- - core/jquery
- - core/drupal
+++ /dev/null
-<?php
-
-/**
- * @file
- * Contains media.module.
- */
-
-use Drupal\Core\Routing\RouteMatchInterface;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\ViewExecutable;
-
-/**
- * Implements hook_help().
- */
-function media_help($route_name, RouteMatchInterface $route_match) {
- switch ($route_name) {
- // Main module help for the media module.
- case 'help.page.media':
- $output = '';
- $output .= '<h3>' . t('About') . '</h3>';
- $output .= '<p>' . t('Media module for Drupal 8') . '</p>';
- return $output;
-
- default:
- }
-}
-
-/**
- * Implements hook_form_alter().
- */
-function media_form_alter(&$form, FormStateInterface &$form_state) {
- if ($form['#form_id'] == 'entity_browser_media_library_form') {
- // Style the submit button.
- $form['actions']['submit']['#attributes']['class'][] = 'button--primary';
- $form['actions']['submit']['#attributes']['class'][] = 'entity-browser-modal-target';
- }
- // Remove the Gallery option from create gallery view's bundle filters.
- if ($form['#id'] == 'views-exposed-form-media-library-gallery-media-select-modal' || $form['#id'] == 'views-exposed-form-media-library-gallery-user-media-select-modal') {
- unset($form['bundle_1']['#options']['gallery']);
- }
- if ($form['#form_id'] == 'media_gallery_form') {
- $form['#attached']['library'][] = 'media/view';
- }
-}
-
-/**
- * Implements hook_views_pre_render().
- *
- * Adds the media.view library to the media views.
- */
-function media_views_pre_render(ViewExecutable $view) {
- if (isset($view) && ($view->storage->id() == 'media_library' || $view->storage->id() == 'global_media_library')) {
- $view->element['#attached']['library'][] = 'media/view';
- }
-}
-
-/**
- * Implements hook_menu_local_actions_alter().
- *
- * Adds the add media button from media_entity on library pages.
- */
-function media_menu_local_actions_alter(&$local_actions) {
- $local_actions['media.add']['appears_on'][] = 'view.media_library.user_media_library';
- $local_actions['media.add']['appears_on'][] = 'view.media_library.global_media_library_page';
-}
-
-/**
- * Implements hook_entity_type_alter().
- */
-function media_entity_type_alter(array &$entity_types) {
- $field_name = \Drupal::config('media_entity.bundle.gallery')->get('type_configuration.source_field');
- $entity_types['media']->addConstraint('GalleryMediaBundle', array('sourceFieldName' => $field_name));
-}
-
-/**
- * Implements hook_menu_links_discovered_alter().
- */
-function media_menu_links_discovered_alter(&$links) {
- // Media entity module provides a default view which we disable. Since it also
- // provides a link entry for it we need to update the route there to point to
- // the media library we provide.
- $links['entity.media.collection']['route_name'] = 'view.media_library.global_media_library_page';
-}
+++ /dev/null
-<?php
-
-namespace Drupal\media\Plugin\Validation\Constraint;
-
-use Symfony\Component\Validator\Constraint;
-
-/**
- * Check that there is no Gallery type item in slideshow items.
- *
- * @Constraint(
- * id = "GalleryMediaBundle",
- * label = @Translation("Gallery media bundle", context = "Validation"),
- * )
- */
-class GalleryMediaBundleConstraint extends Constraint {
-
- /**
- * Name of the source field for slideshow bundle.
- *
- * @var string
- */
- public $sourceFieldName;
-
- /**
- * The default violation message.
- *
- * @var string
- */
- public $message = 'Gallery cannot contain gallery type item.';
-}
+++ /dev/null
-<?php
-
-namespace Drupal\media\Plugin\Validation\Constraint;
-
-use Symfony\Component\Validator\Constraint;
-use Symfony\Component\Validator\ConstraintValidator;
-
-/**
- * Validates the GalleryMediaBundle constraint.
- */
-class GalleryMediaBundleConstraintValidator extends ConstraintValidator {
-
- /**
- * {@inheritdoc}
- */
- public function validate($value, Constraint $constraint) {
- if (!isset($value)) {
- return;
- }
- if ($value->hasField($constraint->sourceFieldName)) {
- $slideshowItems = $value->get($constraint->sourceFieldName);
- foreach ($slideshowItems as $item) {
- if ($item->entity->getType()->getPluginId() == "slideshow") {
- $this->context->addViolation($constraint->message);
- }
- }
- }
- }
-
-}
+++ /dev/null
-<?php
-
-namespace Drupal\media\Tests;
-
-use Drupal\simpletest\WebTestBase;
-
-/**
- * Ensures that media bundle for document can be created.
- *
- * @group media
- */
-class DocumentBundleTest extends WebTestBase {
- /**
- * Exempt from strict schema checking.
- *
- * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker
- *
- * @var bool
- */
- protected $strictConfigSchema = FALSE;
-
- /**
- * Modules to enable.
- *
- * @var array
- */
- public static $modules = [
- 'media',
- 'media_entity',
- 'media_entity_document',
- 'node',
- 'editor',
- ];
-
- /**
- * The test media bundle.
- *
- * @var \Drupal\media_entity\MediaBundleInterface
- */
- protected $testBundle;
-
- /**
- * {@inheritdoc}
- */
- protected function setUp() {
- parent::setUp();
- $this->testBundle = $this->container->get('entity_type.manager')->getStorage('media_bundle')->load('document');
-
- $adminUser = $this->drupalCreateUser([
- 'view media',
- 'create media',
- 'update media',
- 'update any media',
- 'delete media',
- 'delete any media',
- 'access media overview',
- ]);
- $this->drupalLogin($adminUser);
- }
-
- /**
- * Tests document media bundle creation from config files.
- */
- public function testMediaBundleCreationFromModule() {
- $type_configuration = [
- 'source_field' => 'field_document',
- ];
- $field_map = [
- 'mime' => 'field_mime_type',
- 'size' => 'field_document_size',
- ];
-
- $this->assertTrue((bool) $this->testBundle, 'The media bundle from default configuration has been created in the database.');
- $this->assertEqual($this->testBundle->get('label'), 'Document', 'Correct label detected.');
- $this->assertEqual($this->testBundle->get('description'), 'Use Document for uploading document files such as PDF.', 'Correct description detected.');
- $this->assertEqual($this->testBundle->get('type'), 'document', 'Correct plugin ID detected.');
- $this->assertEqual($this->testBundle->get('type_configuration'), $type_configuration, 'Type configuration correct.');
- $this->assertEqual($this->testBundle->get('field_map'), $field_map, 'Correct field map detected.');
- }
-
- /**
- * Tests thumbnails of the document items.
- */
- public function testDocumentItemThumbnail() {
- // Array of test files and corresponding file icons.
- $files = [
- 'Test.pdf' => 'public://media-icons/generic/application-pdf.png',
- 'Test.doc' => 'public://media-icons/generic/application-msword.png',
- 'Test.docx' => 'public://media-icons/generic/application-vnd.openxmlformats-officedocument.wordprocessingml.document.png',
- 'Test.ods' => 'public://media-icons/generic/application-vnd.oasis.opendocument.spreadsheet.png',
- 'Test.odt' => 'public://media-icons/generic/application-vnd.oasis.opendocument.text.png',
- 'Test.ott' => 'public://media-icons/generic/application-vnd.oasis.opendocument.text-template.png',
- 'Test.ppt' => 'public://media-icons/generic/application-vnd.ms-powerpoint.png',
- 'Test.pptx' => 'public://media-icons/generic/application-vnd.openxmlformats-officedocument.presentationml.presentation.png',
- 'Test.rtf' => 'public://media-icons/generic/application-rtf.png',
- 'Test.txt' => 'public://media-icons/generic/text-plain.png',
- 'Test.xls' => 'public://media-icons/generic/application-vnd.ms-excel.png',
- 'Test.xlsx' => 'public://media-icons/generic/application-vnd.openxmlformats-officedocument.spreadsheetml.sheet.png',
- ];
-
- foreach ($files as $fileName => $thumbnail) {
- $file = drupal_get_path('module', 'media') . '/files/' . $fileName;
- $name = $this->randomMachineName();
- $this->drupalGet('media/add/document');
- $edit = [
- 'files[field_document_0]' => $file,
- ];
- $this->drupalPostAjaxForm(NULL, $edit, "field_document_0_upload_button");
- $fid = (string) current($this->xpath('//input[@data-drupal-selector="edit-field-document-0-fids"]/@value'));
- $edit = [
- 'name[0][value]' => $name,
- 'form_id' => 'media_document_form',
- 'field_document[0][fids]' => $fid,
- 'field_document[0][display]' => 1,
- ];
- $this->drupalPostForm(NULL, $edit, t('Save and publish'));
- $recentThumbnail = $this->getMostRecentThumbnail();
- $this->assertEqual($thumbnail, $recentThumbnail, "Correct thumbnail detected for " . $fileName);
- }
- }
-
- /**
- * Returns the thumbnail of the most recent document.
- *
- * @return string
- * Path of the thumbnail.
- */
- public function getMostRecentThumbnail() {
- $document_id = $this->container->get('entity.query')->get('media')->condition('bundle', 'document')->sort('created', 'DESC')->execute();
- $item = $this->container->get('entity_type.manager')
- ->getStorage('media')
- ->loadUnchanged(reset($document_id));
- return $item->getType()->thumbnail($item);
- }
-
-}
+++ /dev/null
-<?php
-
-namespace Drupal\media\Tests;
-
-use Drupal\simpletest\WebTestBase;
-
-/**
- * Ensures that media bundle for gallery can be created.
- *
- * @group media
- */
-class GalleryBundleTest extends WebTestBase {
- /**
- * Exempt from strict schema checking.
- *
- * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker
- *
- * @var bool
- */
- protected $strictConfigSchema = FALSE;
-
- /**
- * Modules to enable.
- *
- * @var array
- */
- public static $modules = [
- 'media',
- 'media_entity',
- 'media_entity_slideshow',
- 'node',
- 'editor',
- ];
-
- /**
- * The test media bundle.
- *
- * @var \Drupal\media_entity\MediaBundleInterface
- */
- protected $testBundle;
-
- /**
- * {@inheritdoc}
- */
- protected function setUp() {
- parent::setUp();
- $this->testBundle = $this->container->get('entity_type.manager')->getStorage('media_bundle')->load('gallery');
-
- $adminUser = $this->drupalCreateUser([
- 'view media',
- 'create media',
- 'update media',
- 'update any media',
- 'delete media',
- 'delete any media',
- 'access media overview',
- 'access gallery_media_library entity browser pages',
- ]);
- $this->drupalLogin($adminUser);
- }
-
- /**
- * Tests gallery media bundle creation from config files.
- */
- public function testMediaBundleCreationFromModule() {
- $type_configuration = [
- 'source_field' => 'field_slide',
- ];
-
- $this->assertTrue((bool) $this->testBundle, 'The media bundle from default configuration has been created in the database.');
- $this->assertEqual($this->testBundle->get('label'), 'Gallery', 'Correct label detected.');
- $this->assertEqual($this->testBundle->get('description'), 'Use Gallery for creating a collection of different media items.', 'Correct description detected.');
- $this->assertEqual($this->testBundle->get('type'), 'slideshow', 'Correct plugin ID detected.');
- $this->assertEqual($this->testBundle->get('type_configuration'), $type_configuration, 'Type configuration correct.');
- $this->assertEqual($this->testBundle->get('field_map'), [], 'Correct field map detected.');
- }
-
- /**
- * Tests thumbnail of the gallery item.
- */
- public function testGalleryItemThumbnail() {
- // Let's add one image and one video.
- $imageItem = $this->addImageItem();
- $videoItem = $this->addVideoItem();
- $this->drupalGet('media/add/gallery');
- $pathValue = (string) current($this->xpath('//input[@data-drupal-selector="edit-field-slide-entity-browser-entity-browser-path"]/@value'));
- $edit = [
- 'name[0][value]' => 'Gallery item',
- 'field_slide[target_id]' => 'media:' . $imageItem['id'] . ' media:' . $videoItem['id'],
- 'field_slide[entity_browser][entity_browser][path]' => $pathValue,
- ];
- $this->drupalPostForm(NULL, $edit, t('Save and publish'));
-
- // Let's load all the media items.
- $gallery_id = $this->container->get('entity.query')->get('media')->condition('bundle', 'gallery')->sort('created', 'DESC')->execute();
- $gallery = $this->loadMediaItem(reset($gallery_id));
- $image = $this->loadMediaItem($imageItem['id']);
- $video = $this->loadMediaItem($videoItem['id']);
- // Let's check thumbnail now.
- $gallery_thumbnail = $gallery->getType()->thumbnail($gallery);
- $image_thumbnail = $image->getType()->thumbnail($image);
- $video_thumbnail = $video->getType()->thumbnail($video);
- $this->assertEqual($gallery_thumbnail, $image_thumbnail, "Correct thumbnail detected.");
-
- $this->drupalGet('media/add/gallery');
- $edit = [
- 'name[0][value]' => 'Gallery item 2',
- 'field_slide[target_id]' => 'media:' . $videoItem['id'] . ' media:' . $imageItem['id'],
- 'field_slide[entity_browser][entity_browser][path]' => $pathValue,
- ];
- $this->drupalPostForm(NULL, $edit, t('Save and publish'));
-
- // Let's check the thumbnail again.
- $gallery_id = $this->container->get('entity.query')->get('media')->condition('bundle', 'gallery')->sort('created', 'DESC')->execute();
- $gallery = $this->loadMediaItem(reset($gallery_id));
- $gallery_thumbnail = $gallery->getType()->thumbnail($gallery);
- $this->assertEqual($gallery_thumbnail, $video_thumbnail, "Correct thumbnail detected.");
- }
-
- /**
- * Tests that gallery option isn't available in gallery create bundle filters.
- */
- public function testGalleryOption() {
- // Open the media library iframe used on add gallery page.
- $this->drupalGet('entity-browser/modal/gallery_media_library');
- $this->assertNoOption('edit-bundle-1', 'gallery');
- }
-
- /**
- * Adds image type item.
- */
- public function addImageItem() {
- // Let's add image first.
- $name = $this->randomMachineName();
- $testImage = current($this->drupalGetTestFiles('image'));
- $file_path = $this->container->get('file_system')->realpath($testImage->uri);
- $edit = [
- 'name[0][value]' => $name,
- 'files[field_image_0]' => $file_path,
- ];
- // Save the image.
- $this->drupalPostForm('media/add/image', $edit, t('Save and publish'));
- $this->drupalPostForm(NULL, ['field_image[0][alt]' => $name], t('Save and publish'));
- // Obtain the image id.
- $media_id = $this->container->get('entity.query')->get('media')->condition('bundle', 'image')->sort('created', 'DESC')->execute();
- $media_id = reset($media_id);
- $edit['id'] = $media_id;
-
- return $edit;
- }
-
- /**
- * Adds video type item.
- */
- public function addVideoItem() {
- $edit = [
- 'name[0][value]' => 'Drupal video!',
- 'field_video[0][value]' => 'https://www.youtube.com/watch?v=XgYu7-DQjDQ',
- ];
- $this->drupalPostForm('media/add/video', $edit, t('Save and publish'));
- // Obtain the video id.
- $media_id = $this->container->get('entity.query')->get('media')->condition('bundle', 'video')->sort('created', 'DESC')->execute();
- $media_id = reset($media_id);
- $edit['id'] = $media_id;
-
- return $edit;
- }
-
- /**
- * Loads the media entity item.
- *
- * @param int $id
- * The id of the item.
- *
- * @return \Drupal\media_entity\MediaInterface
- * The media entity item.
- */
- public function loadMediaItem($id) {
- $item = $this->container->get('entity_type.manager')
- ->getStorage('media')
- ->loadUnchanged($id);
- return $item;
- }
-
-}
+++ /dev/null
-<?php
-
-namespace Drupal\media\Tests;
-
-use Drupal\simpletest\WebTestBase;
-
-/**
- * Ensures that media bundle for images can be created.
- *
- * @group media
- */
-class ImageBundleTest extends WebTestBase {
- /**
- * Exempt from strict schema checking.
- *
- * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker
- *
- * @var bool
- */
- protected $strictConfigSchema = FALSE;
-
- /**
- * Modules to enable.
- *
- * @var array
- */
- public static $modules = [
- 'media',
- 'media_entity',
- 'media_entity_image',
- 'image',
- 'node',
- 'editor',
- ];
-
- /**
- * The test media bundle.
- *
- * @var \Drupal\media_entity\MediaBundleInterface
- */
- protected $testBundle;
-
- /**
- * {@inheritdoc}
- */
- protected function setUp() {
- parent::setUp();
- $this->testBundle = $this->container->get('entity.manager')->getStorage('media_bundle')->load('image');
-
- $adminUser = $this->drupalCreateUser([
- 'view media',
- 'create media',
- 'update media',
- 'update any media',
- 'delete media',
- 'delete any media',
- 'access media overview',
- ]);
- $this->drupalLogin($adminUser);
- }
-
- /**
- * Tests image media bundle creation from config files.
- */
- public function testMediaBundleCreationFromModule() {
- $type_configuration = [
- 'source_field' => 'field_image',
- 'gather_exif' => FALSE,
- ];
-
- $this->assertTrue((bool) $this->testBundle, 'The media bundle from default configuration has been created in the database.');
- $this->assertEqual($this->testBundle->get('label'), 'Image', 'Correct label detected.');
- $this->assertEqual($this->testBundle->get('description'), 'Use Image for uploading locally hosted images.', 'Correct description detected.');
- $this->assertEqual($this->testBundle->get('type'), 'image', 'Correct plugin ID detected.');
- $this->assertEqual($this->testBundle->get('type_configuration'), $type_configuration, 'Type configuration correct.');
- $this->assertEqual($this->testBundle->get('field_map'), [], 'Correct field map detected.');
- }
-
- /**
- * Tests item creation and thumbnail.
- */
- public function testMediaBundleItemCreation() {
- // Define the media item name.
- $name = $this->randomMachineName();
- $image_files = $this->drupalGetTestFiles('image');
- $testImage = current($image_files);
- $file_path = $this->container->get('file_system')->realpath($testImage->uri);
- $edit = [
- 'name[0][value]' => $name,
- 'files[field_image_0]' => $file_path,
- ];
-
- // Save the image.
- $this->drupalPostForm('media/add/' . $this->testBundle->id(), $edit, t('Save and publish'));
- $this->drupalPostForm(NULL, ['field_image[0][alt]' => $name], t('Save and publish'));
-
- // Let's retrieve the media id and corresponding media entity object.
- $media_id = $this->container->get('entity.query')->get('media')->execute();
- $media_id = reset($media_id);
- /** @var \Drupal\media_entity\MediaInterface $media */
- $media = $this->container->get('entity_type.manager')
- ->getStorage('media')
- ->loadUnchanged($media_id);
- $this->assertEqual($media->get('name')[0]->getValue()['value'], $name, "Correct name stored.");
- $image = $media->getType();
- $thumbnail = $image->thumbnail($media);
- $default_thumbnail = $image->getDefaultThumbnail();
- $this->assertNotEqual($thumbnail, $default_thumbnail, "The thumbnail generated is different from the default thumbnail.");
- }
-
-}
+++ /dev/null
-<?php
-
-namespace Drupal\media\Tests;
-
-use Drupal\simpletest\WebTestBase;
-
-/**
- * Ensures that media bundle for instagram can be created.
- *
- * @group media
- */
-class InstagramBundleTest extends WebTestBase {
- /**
- * Exempt from strict schema checking.
- *
- * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker
- *
- * @var bool
- */
- protected $strictConfigSchema = FALSE;
-
- /**
- * Modules to enable.
- *
- * @var array
- */
- public static $modules = [
- 'media',
- 'media_entity',
- 'media_entity_instagram',
- 'link',
- 'node',
- 'editor',
- ];
-
- /**
- * The test media bundle.
- *
- * @var \Drupal\media_entity\MediaBundleInterface
- */
- protected $testBundle;
-
- /**
- * {@inheritdoc}
- */
- protected function setUp() {
- parent::setUp();
- $this->testBundle = $this->container->get('entity.manager')->getStorage('media_bundle')->load('instagram');
-
- $adminUser = $this->drupalCreateUser([
- 'view media',
- 'create media',
- 'update media',
- 'update any media',
- 'delete media',
- 'delete any media',
- 'access media overview',
- ]);
- $this->drupalLogin($adminUser);
- }
-
- /**
- * Tests instagram media bundle creation from config files.
- */
- public function testMediaBundleCreationFromModule() {
- $type_configuration = [
- 'use_instagram_api' => FALSE,
- 'source_field' => 'field_instagram_url',
- 'client_id' => '',
- ];
- $field_map = [
- 'shortcode' => 'field_instagram_shortcode',
- ];
-
- $this->assertTrue((bool) $this->testBundle, 'The media bundle from default configuration has been created in the database.');
- $this->assertEqual($this->testBundle->get('label'), 'Instagram Post', 'Correct label detected.');
- $this->assertEqual($this->testBundle->get('description'), 'Use this to attach Instagram posts to your content.', 'Correct description detected.');
- $this->assertEqual($this->testBundle->get('type'), 'instagram', 'Correct plugin ID detected.');
- $this->assertEqual($this->testBundle->get('type_configuration'), $type_configuration, 'Type configuration correct.');
- $this->assertEqual($this->testBundle->get('field_map'), $field_map, 'Correct field map detected.');
- }
-
- /**
- * Tests item creation and thumbnail.
- */
- public function testMediaBundleItemCreation() {
- // Define the media item name.
- $name = $this->randomMachineName();
- $instagram_url = 'https://www.instagram.com/p/C/';
- $edit = [
- 'name[0][value]' => $name,
- 'field_instagram_url[0][uri]' => $instagram_url,
- ];
-
- // Save the Instagram post.
- $this->drupalPostForm('media/add/' . $this->testBundle->id(), $edit, t('Save and publish'));
-
- // Assert that the formatter exists on this page.
- $this->assertFieldByXPath('//iframe');
-
- // Let's retrieve the media id and corresponding media entity object.
- $media_id = $this->container->get('entity.query')->get('media')->condition('bundle', 'instagram')->sort('created', 'DESC')->execute();
- $media_id = reset($media_id);
- /** @var \Drupal\media_entity\MediaInterface $media */
- $media = $this->container->get('entity_type.manager')
- ->getStorage('media')
- ->loadUnchanged($media_id);
- $properties = $media->toArray();
- $this->assertEqual($media->get('field_instagram_shortcode')[0]->getValue()['value'], "C", "Correct shortcode stored.");
- }
-
-}
+++ /dev/null
-<?php
-
-namespace Drupal\media\Tests;
-
-use Drupal\simpletest\WebTestBase;
-
-/**
- * Ensures that media bundle for tweets can be created.
- *
- * @group media
- */
-class TweetBundleTest extends WebTestBase {
- /**
- * Exempt from strict schema checking.
- *
- * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker
- *
- * @var bool
- */
- protected $strictConfigSchema = FALSE;
-
- /**
- * Modules to enable.
- *
- * @var array
- */
- public static $modules = [
- 'media',
- 'media_entity',
- 'media_entity_twitter',
- 'node',
- 'link',
- 'editor',
- ];
-
- /**
- * The test media bundle.
- *
- * @var \Drupal\media_entity\MediaBundleInterface
- */
- protected $testBundle;
-
- /**
- * {@inheritdoc}
- */
- protected function setUp() {
- parent::setUp();
- $this->testBundle = $this->container->get('entity.manager')->getStorage('media_bundle')->load('tweet');
-
- $adminUser = $this->drupalCreateUser([
- 'view media',
- 'create media',
- 'update media',
- 'update any media',
- 'delete media',
- 'delete any media',
- 'access media overview',
- ]);
- $this->drupalLogin($adminUser);
- }
-
- /**
- * Tests tweet media bundle creation from config files.
- */
- public function testMediaBundleCreationFromModule() {
- $type_configuration = [
- 'use_twitter_api' => FALSE,
- 'source_field' => 'field_tweet_url',
- 'consumer_key' => '',
- 'consumer_secret' => '',
- 'oauth_access_token' => '',
- 'oauth_access_token_secret' => '',
- ];
- $field_map = [
- 'id' => 'field_tweet_id',
- 'user' => 'field_tweet_author',
- ];
-
- $this->assertTrue((bool) $this->testBundle, 'The media bundle from default configuration has been created in the database.');
- $this->assertEqual($this->testBundle->get('label'), 'Tweet', 'Correct label detected.');
- $this->assertEqual($this->testBundle->get('description'), 'Use this to embed Twitter content on your site.', 'Correct description detected.');
- $this->assertEqual($this->testBundle->get('type'), 'twitter', 'Correct plugin ID detected.');
- $this->assertEqual($this->testBundle->get('type_configuration'), $type_configuration, 'Type configuration correct.');
- $this->assertEqual($this->testBundle->get('field_map'), $field_map, 'Correct field map detected.');
- }
-
- /**
- * Tests item creation.
- */
- public function testMediaBundleItemCreation() {
- // Define the media item name.
- $name = $this->randomMachineName();
- $tweet_url = 'https://twitter.com/jack/status/20';
- $edit = [
- 'name[0][value]' => $name,
- 'field_tweet_url[0][uri]' => $tweet_url,
- ];
-
- // Save the tweet.
- $this->drupalPostForm('media/add/' . $this->testBundle->id(), $edit, t('Save and publish'));
- // Let's retrieve the media id.
- $media_id = $this->container->get('entity.query')->get('media')->condition('bundle', 'tweet')->sort('created', 'DESC')->execute();
- $media_id = reset($media_id);
- $media = $this->container->get('entity_type.manager')
- ->getStorage('media')
- ->loadUnchanged($media_id);
- $properties = $media->toArray();
- $this->assertEqual($media->get('field_tweet_author')[0]->getValue()['value'], "jack", "Correct tweet author stored.");
- $this->assertEqual($media->get('field_tweet_id')[0]->getValue()['value'], "20", "Correct tweet id stored.");
- }
-
-}
+++ /dev/null
-<?php
-
-namespace Drupal\media\Tests;
-
-use Drupal\simpletest\WebTestBase;
-
-/**
- * Ensures that media bundle for videos can be created.
- *
- * @group media
- */
-class VideoBundleTest extends WebTestBase {
- /**
- * Exempt from strict schema checking.
- *
- * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker
- *
- * @var bool
- */
- protected $strictConfigSchema = FALSE;
-
- /**
- * Modules to enable.
- *
- * @var array
- */
- public static $modules = [
- 'media',
- 'media_entity',
- 'video_embed_field',
- 'video_embed_media',
- 'node',
- 'editor',
- ];
-
- /**
- * The test media bundle.
- *
- * @var \Drupal\media_entity\MediaBundleInterface
- */
- protected $testBundle;
-
- /**
- * {@inheritdoc}
- */
- protected function setUp() {
- parent::setUp();
- $this->testBundle = $this->container->get('entity.manager')->getStorage('media_bundle')->load('video');
-
- $adminUser = $this->drupalCreateUser([
- 'view media',
- 'create media',
- 'update media',
- 'update any media',
- 'delete media',
- 'delete any media',
- 'access media overview',
- ]);
- $this->drupalLogin($adminUser);
- }
-
- /**
- * Tests video media bundle creation from config files.
- */
- public function testMediaBundleCreationFromModule() {
- $type_configuration = [
- 'source_field' => 'field_video',
- ];
-
- $field_map = [
- 'id' => 'field_id',
- 'source_name' => 'field_source',
- ];
-
- $this->assertTrue((bool) $this->testBundle, 'The media bundle from default configuration has been created in the database.');
- $this->assertEqual($this->testBundle->get('label'), 'Video', 'Correct label detected.');
- $this->assertEqual($this->testBundle->get('description'), 'Use Video for embedding videos hosted by YouTube, Vimeo, or some other provider.', 'Correct description detected.');
- $this->assertEqual($this->testBundle->get('type'), 'video_embed_field', 'Correct plugin ID detected.');
- $this->assertEqual($this->testBundle->get('type_configuration'), $type_configuration, 'Type configuration correct.');
- $this->assertEqual($this->testBundle->get('field_map'), $field_map, 'Correct field map detected.');
- }
-
- /**
- * Tests video media bundle field maps.
- */
- public function testBundleFieldMap() {
- $edit = [
- 'name[0][value]' => 'Drupal video!',
- 'field_video[0][value]' => 'https://www.youtube.com/watch?v=XgYu7-DQjDQ',
- ];
- $this->drupalPostForm('media/add/' . $this->testBundle->id(), $edit, t('Save and publish'));
-
- // Let's retrieve the media id and corresponding media entity object.
- $media_id = $this->container->get('entity.query')->get('media')->execute();
- $media_id = reset($media_id);
- /** @var \Drupal\media_entity\MediaInterface $media */
- $media = $this->container->get('entity_type.manager')
- ->getStorage('media')
- ->loadUnchanged($media_id);
- $properties = $media->toArray();
- $this->assertEqual($properties['field_id'][0]['value'], 'XgYu7-DQjDQ', 'Correct video ID detected.');
- $this->assertEqual($properties['field_source'][0]['value'], 'youtube', 'Correct video source detected.');
- }
-
-}
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.node.page.body
- - node.type.page
- module:
- - path
- - text
-id: node.page.default
-targetEntityType: node
-bundle: page
-mode: default
-content:
- body:
- type: text_textarea_with_summary
- weight: 31
- settings:
- rows: 9
- summary_rows: 3
- placeholder: ''
- third_party_settings: { }
- created:
- type: datetime_timestamp
- weight: 10
- settings: { }
- third_party_settings: { }
- path:
- type: path
- weight: 30
- settings: { }
- third_party_settings: { }
- promote:
- type: boolean_checkbox
- settings:
- display_label: true
- weight: 15
- third_party_settings: { }
- sticky:
- type: boolean_checkbox
- settings:
- display_label: true
- weight: 16
- third_party_settings: { }
- title:
- type: string_textfield
- weight: -5
- settings:
- size: 60
- placeholder: ''
- third_party_settings: { }
- uid:
- type: entity_reference_autocomplete
- weight: 5
- settings:
- match_operator: CONTAINS
- size: 60
- placeholder: ''
- third_party_settings: { }
-hidden: { }
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - filter.format.basic_html
- module:
- - ckeditor
-format: basic_html
-editor: ckeditor
-settings:
- toolbar:
- rows:
- -
- -
- name: Formatting
- items:
- - Bold
- - Italic
- -
- name: Linking
- items:
- - DrupalLink
- - DrupalUnlink
- -
- name: Lists
- items:
- - BulletedList
- - NumberedList
- -
- name: Media
- items:
- - Blockquote
- - DrupalImage
- -
- name: 'Block Formatting'
- items:
- - Format
- -
- name: Tools
- items:
- - Source
- plugins:
- stylescombo:
- styles: ''
-image_upload:
- status: true
- scheme: public
- directory: inline-images
- max_size: ''
- max_dimensions:
- width: 0
- height: 0
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - filter.format.full_html
- module:
- - ckeditor
-format: full_html
-editor: ckeditor
-settings:
- toolbar:
- rows:
- -
- -
- name: Formatting
- items:
- - Bold
- - Italic
- - Strike
- - Superscript
- - Subscript
- - '-'
- - RemoveFormat
- -
- name: Linking
- items:
- - DrupalLink
- - DrupalUnlink
- -
- name: Lists
- items:
- - BulletedList
- - NumberedList
- -
- name: Media
- items:
- - Blockquote
- - DrupalImage
- - Table
- - HorizontalRule
- -
- name: 'Block Formatting'
- items:
- - Format
- -
- name: Tools
- items:
- - ShowBlocks
- - Source
- plugins:
- stylescombo:
- styles: ''
-image_upload:
- status: true
- scheme: public
- directory: inline-images
- max_size: ''
- max_dimensions:
- width: 0
- height: 0
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.node.body
- - node.type.page
- module:
- - text
-id: node.page.body
-field_name: body
-entity_type: node
-bundle: page
-label: Body
-description: ''
-required: false
-translatable: true
-default_value: { }
-default_value_callback: ''
-settings:
- display_summary: true
-field_type: text_with_summary
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - editor
-name: 'Basic HTML'
-format: basic_html
-weight: 0
-roles:
- - authenticated
-filters:
- filter_html:
- id: filter_html
- provider: filter
- status: true
- weight: -10
- settings:
- allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <p> <br> <span> <img src alt height width data-entity-type data-entity-uuid data-align data-caption>'
- filter_html_help: false
- filter_html_nofollow: false
- filter_align:
- id: filter_align
- provider: filter
- status: true
- weight: 7
- settings: { }
- filter_caption:
- id: filter_caption
- provider: filter
- status: true
- weight: 8
- settings: { }
- filter_html_image_secure:
- id: filter_html_image_secure
- provider: filter
- status: true
- weight: 9
- settings: { }
- editor_file_reference:
- id: editor_file_reference
- provider: editor
- status: true
- weight: 11
- settings: { }
+++ /dev/null
-langcode: en
-status: true
-dependencies:
- module:
- - editor
-name: 'Full HTML'
-format: full_html
-weight: 1
-roles:
- - administrator
-filters:
- filter_align:
- id: filter_align
- provider: filter
- status: true
- weight: 8
- settings: { }
- filter_caption:
- id: filter_caption
- provider: filter
- status: true
- weight: 9
- settings: { }
- filter_htmlcorrector:
- id: filter_htmlcorrector
- provider: filter
- status: true
- weight: 10
- settings: { }
- editor_file_reference:
- id: editor_file_reference
- provider: editor
- status: true
- weight: 11
- settings: { }
+++ /dev/null
-langcode: en
-status: true
-dependencies: { }
-name: 'Basic page'
-type: page
-description: 'Use <em>basic pages</em> for your static content, such as an ''About us'' page.'
-help: ''
-new_revision: true
-preview_mode: 1
-display_submitted: false
+++ /dev/null
-name: 'Media Embed Test'
-description: 'Support module for the media embed tests.'
-type: module
-package: Testing
-core: 8.x
-version: VERSION
-dependencies:
- - editor:editor
- - ckeditor:ckeditor
+++ /dev/null
-<?php
-
-namespace Drupal\Tests\media\FunctionalJavascript;
-
-use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
-
-/**
- * Ensures that embedding functionality works perfectly.
- *
- * @group media
- */
-class EmbedButtonTest extends JavascriptTestBase {
-
- /**
- * {@inheritdoc}
- */
- public static $modules = [
- 'node',
- 'path',
- 'text',
- ];
-
- /**
- * {@inheritdoc}
- */
- public function setUp() {
- parent::setUp();
- // Manually installing modules to preserve the order.
- $this->installModule('media_embed_test');
- $this->installModule('media');
- $adminUser = $this->drupalCreateUser([
- 'access content',
- 'use text format basic_html',
- 'use text format full_html',
- 'access media_embed entity browser pages',
- 'view media',
- 'create media',
- 'update media',
- 'update any media',
- 'delete media',
- 'delete any media',
- 'access media overview',
- 'create page content',
- 'edit any page content',
- ]);
- $this->drupalLogin($adminUser);
- }
-
- /**
- * Tests that the entity embed dialog is working.
- */
- public function testMediaEmbedDialog() {
- // Find the button and click it to see if the modal opens.
- $this->drupalGet('node/add/page');
- $this->find('.cke_button__media')->click();
- $this->wait();
- $this->assertSession()->pageTextContains('Select media to embed');
-
- // Test for the button in the basic_html editor.
- $this->drupalGet('entity-embed/dialog/basic_html/media');
- $this->assertEquals(200, $this->getSession()->getStatusCode());
- $this->assertSession()->pageTextContains('Select media to embed');
-
- // Test for the button in the full_html editor.
- $this->drupalGet('entity-embed/dialog/full_html/media');
- $this->assertEquals(200, $this->getSession()->getStatusCode());
- $this->assertSession()->pageTextContains('Select media to embed');
-
- $this->drupalGet('entity-browser/iframe/media_embed');
- $this->assertEquals(200, $this->getSession()->getStatusCode());
- $filter = $this->getSession()->getPage()->find('css', 'input[name="name"]');
- $this->assertTrue($filter, "Found filter");
- }
-
- /**
- * Installs the module using module_handler service.
- *
- * @param string $module_name
- * Name of the module to install.
- */
- public function installModule($module_name) {
- if (!$this->container->get('module_handler')->moduleExists($module_name)) {
- $this->container->get('module_installer')->install(array($module_name));
- }
- }
-
- /**
- * Wait for AJAX.
- */
- protected function wait() {
- $this->getSession()->wait(20000, '(0 === jQuery.active)');
- }
-
- /**
- * Find an element based on a CSS selector.
- *
- * @param string $css_selector
- * A css selector to find an element for.
- *
- * @return \Behat\Mink\Element\NodeElement|null
- * The found element or null.
- */
- protected function find($css_selector) {
- return $this->getSession()->getPage()->find('css', $css_selector);
- }
-
-}