ImageEffectBase::getSummary

public ImageEffectBase::getSummary()

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

Return value

array A render array.

Overrides ImageEffectInterface::getSummary

File

core/modules/image/src/ImageEffectBase.php, line 87

Class

ImageEffectBase
Provides a base class for image effects.

Namespace

Drupal\image

Code

public function getSummary() {
  return array(
    '#markup' => '',
    '#effect' => array(
      'id' => $this->pluginDefinition['id'],
      'label' => $this->label(),
      'description' => $this->pluginDefinition['description'],
    ),
  );
}
doc_Drupal
2016-10-29 09:19:15
Comments
Leave a Comment

Please login to continue.