Skip to content
Snippets Groups Projects

Issue #3048458: Add support of "preload" attribute into FileMediaFormatterBase

Issue #3048458: Add support of "preload" attribute into FileMediaFormatterBase

Closes #3048458

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
35 * Whether deprecations should be enabled.
36 */
37 public function setDeprecationsEnabled(bool $enabled): void {
38 $this->deprecationsEnabled = $enabled;
39 }
40
41 /**
42 * Processes preload formatters.
43 *
44 * @param \Drupal\Core\Entity\Display\EntityViewDisplayInterface $view_display
45 * The view display.
46 *
47 * @return bool
48 * Whether the display was updated.
49 */
50 public function processPreloadSetting(EntityViewDisplayInterface $view_display): bool {
  • This needs test coverage. See ResponsiveImageConfigUpdater and its test for examples. You can look at ResponsiveImageStyle::preSave for an example how to handle install profile scenarios.

  • Please register or sign in to reply
Please register or sign in to reply
Loading