summaryrefslogtreecommitdiffstats
path: root/core/modules/responsive_image/responsive_image.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/responsive_image/responsive_image.module')
-rw-r--r--core/modules/responsive_image/responsive_image.module22
1 files changed, 2 insertions, 20 deletions
diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module
index 82ecafe..53c182c 100644
--- a/core/modules/responsive_image/responsive_image.module
+++ b/core/modules/responsive_image/responsive_image.module
@@ -5,7 +5,7 @@
* Responsive image display formatter for image fields.
*/
-use Drupal\responsive_image\Entity\ResponsiveImageMapping;
+use Drupal\breakpoint\Entity\Breakpoint;
use \Drupal\Core\Template\Attribute;
use Symfony\Component\HttpFoundation\Request;
@@ -71,24 +71,6 @@ function responsive_image_menu() {
}
/**
- * Load one responsive image by its identifier.
- *
- * @param int $id
- * The id of the responsive image mapping to load.
- *
- * @return \Drupal\responsive_image\ResponsiveImageMappingInterface
- * The entity object, or NULL if there is no entity with the given id.
- *
- * @todo Needed for menu_callback
- *
- * @see http://drupal.org/node/1798214
- *
- */
-function responsive_image_mapping_load($id) {
- return entity_load('responsive_image_mapping', $id);
-}
-
-/**
* Implements hook_theme().
*/
function responsive_image_theme() {
@@ -218,7 +200,7 @@ function theme_responsive_image($variables) {
// All breakpoints and multipliers.
foreach ($variables['breakpoints'] as $breakpoint_name => $multipliers) {
- $breakpoint = breakpoint_load($breakpoint_name);
+ $breakpoint = Breakpoint::load($breakpoint_name);
if ($breakpoint) {
$new_sources = array();
foreach ($multipliers as $multiplier => $image_style) {