elevatezoomplus_ui.module in ElevateZoom Plus 8
Same filename and directory in other branches
Provides the ElevateZoomPlus UI.
File
modules/ui/elevatezoomplus_ui.moduleView source
<?php
/**
* @file
* Provides the ElevateZoomPlus UI.
*/
/**
* Implements hook_entity_type_build().
*/
function elevatezoomplus_ui_entity_type_build(array &$entity_types) {
/** @var \Drupal\Core\Entity\EntityTypeInterface $entity_types */
$elevatezoomplus = $entity_types['elevatezoomplus'];
$elevatezoomplus
->setListBuilderClass('Drupal\\elevatezoomplus_ui\\Controller\\ElevateZoomPlusListBuilder');
$elevatezoomplus
->setFormClass('add', 'Drupal\\elevatezoomplus_ui\\Form\\ElevateZoomPlusForm');
$elevatezoomplus
->setFormClass('edit', 'Drupal\\elevatezoomplus_ui\\Form\\ElevateZoomPlusForm');
$elevatezoomplus
->setFormClass('delete', 'Drupal\\elevatezoomplus_ui\\Form\\ElevateZoomPlusDeleteForm');
$elevatezoomplus
->setFormClass('duplicate', 'Drupal\\elevatezoomplus_ui\\Form\\ElevateZoomPlusForm');
$elevatezoomplus
->set('admin_permission', 'administer elevatezoomplus');
$elevatezoomplus
->setLinkTemplate('add-form', '/admin/config/media/elevatezoomplus/add');
$elevatezoomplus
->setLinkTemplate('edit-form', '/admin/config/media/elevatezoomplus/{elevatezoomplus}');
$elevatezoomplus
->setLinkTemplate('delete-form', '/admin/config/media/elevatezoomplus/{elevatezoomplus}/delete');
$elevatezoomplus
->setLinkTemplate('duplicate-form', '/admin/config/media/elevatezoomplus/{elevatezoomplus}/duplicate');
$elevatezoomplus
->setLinkTemplate('collection', '/admin/config/media/elevatezoomplus');
}
/**
* Implements hook_help().
*/
function elevatezoomplus_ui_help($route_name) {
if ($route_name == 'help.page.elevatezoomplus_ui') {
$output = file_get_contents(dirname(dirname(dirname(__FILE__))) . '/README.md');
return function_exists('blazy_parse_markdown') ? blazy_parse_markdown($output) : '<pre>' . $output . '</pre>';
}
return '';
}
Functions
Name | Description |
---|---|
elevatezoomplus_ui_entity_type_build | Implements hook_entity_type_build(). |
elevatezoomplus_ui_help | Implements hook_help(). |