Commit 1509820c authored by Hani Gerges's avatar Hani Gerges Committed by Rajab Natshah
Browse files

Issue #3264297 by hanii.gerges: Add title attribute to oEmbed iframe for accessibility

parent 675a15aa
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -77,6 +77,13 @@ class VarbaseOEmbedFormatter extends OEmbedFormatter {
        ],
      ];

      // Add title attribute to oEmbed iframe for accessibility.
      if (isset($media->name)
         && isset($media->name->value)
         && $media->name->value !== '') {
        $element[$delta]['#attributes']['title'] = $media->name->value;
      }

    }
    return $element;
  }