function FileMediaFormatterBase::getHtmlTag

Same name and namespace in other branches
  1. 9 core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase::getHtmlTag()
  2. 10 core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase::getHtmlTag()
  3. 11.x core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase::getHtmlTag()

Gets the HTML tag for the formatter.

Return value

string The HTML tag of this formatter.

1 call to FileMediaFormatterBase::getHtmlTag()
FileMediaFormatterBase::settingsForm in core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php
Returns a form to configure settings for the formatter.

File

core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php, line 23

Class

FileMediaFormatterBase
Base class for media file formatter.

Namespace

Drupal\file\Plugin\Field\FieldFormatter

Code

protected function getHtmlTag() {
    return static::getMediaType();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.