ImageStyleDeleteForm::getReplacementOptions

protected ImageStyleDeleteForm::getReplacementOptions()

Returns a list of image style replacement options.

Return value

array An option list suitable for the form select '#options'.

File

core/modules/image/src/Form/ImageStyleDeleteForm.php, line 76

Class

ImageStyleDeleteForm
Creates a form to delete an image style.

Namespace

Drupal\image\Form

Code

protected function getReplacementOptions() {
  if (!isset($this->replacementOptions)) {
    $this->replacementOptions = array_diff_key(image_style_options(), [$this->getEntity()->id() => '']);
  }
  return $this->replacementOptions;
}
doc_Drupal
2016-10-29 09:19:39
Comments
Leave a Comment

Please login to continue.