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; }
Please login to continue.