oEmbed-omeka-module/Module.php

30 lines
624 B
PHP

<?php
namespace ArchiveOembed;
use Omeka\Module\AbstractModule;
use Laminas\EventManager\SharedEventManagerInterface;
use Laminas\Mvc\MvcEvent;
class Module extends AbstractModule
{
const NAMESPACE = __NAMESPACE__;
const IMAGE_WIDTH = [
'25' => '25 %',
'50' => '50 %',
'75' => '75 %',
'100' => '100 %',
];
const MEDIA_PROVIDERS_OEMBED = [
'https://vimeo.com/api/oembed.json?url=' => 'Vimeo',
'https://www.youtube.com/oembed?url=' => 'Youtube',
'https://sketchfab.com/oembed/?url=' => 'Sketchfab',
];
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
}