You are here

public function CropImageEffect::getSummary in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/Plugin/ImageEffect/CropImageEffect.php \Drupal\image\Plugin\ImageEffect\CropImageEffect::getSummary()

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

Return value

array A render array.

Overrides ResizeImageEffect::getSummary

File

core/modules/image/src/Plugin/ImageEffect/CropImageEffect.php, line 41
Contains \Drupal\image\Plugin\ImageEffect\CropImageEffect.

Class

CropImageEffect
Crops an image resource.

Namespace

Drupal\image\Plugin\ImageEffect

Code

public function getSummary() {
  $summary = array(
    '#theme' => 'image_crop_summary',
    '#data' => $this->configuration,
  );
  $summary += parent::getSummary();
  return $summary;
}