You are here

public function FontSelectionImageEffect::getSummary in Image Effects 8

Same name and namespace in other branches
  1. 8.3 tests/modules/image_effects_module_test/src/Plugin/ImageEffect/FontSelectionImageEffect.php \Drupal\image_effects_module_test\Plugin\ImageEffect\FontSelectionImageEffect::getSummary()
  2. 8.2 tests/modules/image_effects_module_test/src/Plugin/ImageEffect/FontSelectionImageEffect.php \Drupal\image_effects_module_test\Plugin\ImageEffect\FontSelectionImageEffect::getSummary()

Returns a render array summarizing the configuration of the image effect.

Return value

array A render array.

Overrides ImageEffectBase::getSummary

File

tests/modules/image_effects_module_test/src/Plugin/ImageEffect/FontSelectionImageEffect.php, line 64

Class

FontSelectionImageEffect
Image effect that relies on a font URI selected via the font selector plugin.

Namespace

Drupal\image_effects_module_test\Plugin\ImageEffect

Code

public function getSummary() {
  return [
    '#markup' => $this->configuration['font_name'],
  ] + parent::getSummary();
}