Skip to content

Commit

Permalink
Issue #27: Drop a todo comment in CoolPreview field formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Sep 18, 2024
1 parent 42261bc commit e0a2c08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Plugin/Field/FieldFormatter/CoolPreview.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) {
$elements = [];
$media = $items->getEntity();
if (!$media instanceof MediaInterface) {
// The formatter is being used on the wrong entity type.
// @todo Log this.
// Entity types other than 'media' are not supported.
return [];
}

Expand Down

0 comments on commit e0a2c08

Please sign in to comment.