Commit 0137a12f authored by Joshua Sedler's avatar Joshua Sedler 🤸🏼 Committed by Damien McKenna
Browse files

Issue #2958193 by Grevil, Anybody, DamienMcKenna, nikhileshpaul: Automatically...

Issue #2958193 by Grevil, Anybody, DamienMcKenna, nikhileshpaul: Automatically trim meta tag lengths.
parent dbe470c0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
  metatag_extended_perms.info.yml.
#3240989 by anagomes, DamienMcKenna, Berdir: Not marking service definitions as
  public is deprecated.
#2958193 by Grevil, Anybody, DamienMcKenna, nikhileshpaul: Automatically trim
  meta tag lengths.


Metatag 8.x-1.16, 2021-03-15
+9 −0
Original line number Diff line number Diff line
@@ -14,3 +14,12 @@ metatag.settings:
          sequence:
            type: string
            label: 'Group'
    tag_trim_method:
      type: string
      label: 'Trim method for trimmable tags.'
    tag_trim_maxlength:
      type: sequence
      label: 'Tag-specific maximum length'
      sequence:
        type: integer
        label: 'Tag maximum length in characters'
+3 −0
Original line number Diff line number Diff line
@@ -14,3 +14,6 @@ services:
  metatag.manager:
    class: Drupal\metatag\MetatagManager
    arguments: ['@plugin.manager.metatag.group', '@plugin.manager.metatag.tag', '@metatag.token', '@logger.factory', '@entity_type.manager']

  metatag.trimmer:
    class: Drupal\metatag\MetatagTrimmer
+2 −1
Original line number Diff line number Diff line
@@ -16,7 +16,8 @@ use Drupal\metatag\Plugin\metatag\Tag\MetaNameBase;
 *   weight = 4,
 *   type = "label",
 *   secure = FALSE,
 *   multiple = FALSE
 *   multiple = FALSE,
 *   trimmable = TRUE
 * )
 */
class Description extends MetaNameBase {
+2 −1
Original line number Diff line number Diff line
@@ -16,7 +16,8 @@ use Drupal\metatag\Plugin\metatag\Tag\MetaNameBase;
 *   weight = 1,
 *   type = "label",
 *   secure = FALSE,
 *   multiple = FALSE
 *   multiple = FALSE,
 *   trimmable = TRUE
 * )
 */
class Title extends MetaNameBase {
Loading