public function ImageEffectsPxPerc::getInfo in Image Effects 8
Same name and namespace in other branches
- 8.3 src/Element/ImageEffectsPxPerc.php \Drupal\image_effects\Element\ImageEffectsPxPerc::getInfo()
- 8.2 src/Element/ImageEffectsPxPerc.php \Drupal\image_effects\Element\ImageEffectsPxPerc::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides ElementInterface::getInfo
File
- src/
Element/ ImageEffectsPxPerc.php, line 18
Class
- ImageEffectsPxPerc
- Implements a form element for a quantity either in pixels or percentage.
Namespace
Drupal\image_effects\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#process' => [
[
$class,
'processImageEffectsPxPerc',
],
],
'#element_validate' => [
[
$class,
'validateImageEffectsPxPerc',
],
],
];
}