Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
AMP text formatter does not appear as an option on text fields of type string_long.
Steps to reproduce
Proposed resolution
Append string_long to AmpTextFormatter.php as follows
/**
* Plugin implementation of the 'amp_text' formatter.
*
* @FieldFormatter(
* id = "amp_text",
* label = @Translation("AMP Text"),
* description = @Translation("Display AMP text."),
* field_types = {
* "string",
* "text",
* "text_long",
* "text_with_summary",
* "string_long"
* },
* )
*/
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork amp-3186193
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments