public function PriceModified::getInfo in Price 8
Same name and namespace in other branches
- 3.x src/Element/PriceModified.php \Drupal\price\Element\PriceModified::getInfo()
- 3.0.x src/Element/PriceModified.php \Drupal\price\Element\PriceModified::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/ PriceModified.php, line 33
Class
- PriceModified
- Provides a price form element.
Namespace
Drupal\price\ElementCode
public function getInfo() {
$class = get_class($this);
return [
// List of currencies codes. If empty, all currencies will be available.
'#available_currencies' => [],
'#available_modifiers' => [],
'#size' => 10,
'#maxlength' => 128,
'#default_value' => NULL,
'#allow_negative' => FALSE,
'#attached' => [
'library' => [
'price/admin',
],
],
'#process' => [
[
$class,
'processElement',
],
[
$class,
'processAjaxForm',
],
[
$class,
'processGroup',
],
],
'#pre_render' => [
[
$class,
'preRenderGroup',
],
],
'#input' => TRUE,
'#theme_wrappers' => [
'container',
],
];
}