amp-social-share.html.twig in Accelerated Mobile Pages (AMP) 8.3
Template for an amp-social-share block.
Available variables:
- providers: The providers to share with.
- app_id: Facebook app id.
See also
template_preprocess_amp_social_share()
1 theme call to amp-social-share.html.twig
- AmpSocialShareBlock::build in src/
Plugin/ Block/ AmpSocialShareBlock.php - Builds and returns the renderable array for this block plugin.
File
templates/amp-social-share.html.twigView source
- {#
- /**
- * @file
- * Template for an amp-social-share block.
- *
- * Available variables:
- * - providers: The providers to share with.
- * - app_id: Facebook app id.
- *
- * @see template_preprocess_amp_social_share()
- */
- #}
- {% for provider in providers %}
- <amp-social-share type="{{ provider }}"
- {% if provider == 'facebook' %}
- data-param-app_id="{{ app_id }}"
- {% endif %}
- ></amp-social-share>
- {% endfor %}