You are here

public function ImageAPIOptimizeProcessorBase::getSummary in Image Optimize (or ImageAPI Optimize) 8.2

Same name and namespace in other branches
  1. 8.3 src/ImageAPIOptimizeProcessorBase.php \Drupal\imageapi_optimize\ImageAPIOptimizeProcessorBase::getSummary()
  2. 4.x src/ImageAPIOptimizeProcessorBase.php \Drupal\imageapi_optimize\ImageAPIOptimizeProcessorBase::getSummary()

Returns a render array summarizing the configuration of the image optimize processor.

Return value

array A render array.

Overrides ImageAPIOptimizeProcessorInterface::getSummary

File

src/ImageAPIOptimizeProcessorBase.php, line 78

Class

ImageAPIOptimizeProcessorBase
Provides a base class for image optimize processors.

Namespace

Drupal\imageapi_optimize

Code

public function getSummary() {
  return [
    '#markup' => '',
    '#processor' => [
      'id' => $this->pluginDefinition['id'],
      'label' => $this
        ->label(),
      'description' => $this->pluginDefinition['description'],
    ],
  ];
}