public function ProfileSelect::getInfo in Commerce Core 8.2
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
- modules/
order/ src/ Element/ ProfileSelect.php, line 37
Class
- ProfileSelect
- Provides a form element for selecting a customer profile.
Namespace
Drupal\commerce_order\ElementCode
public function getInfo() {
$class = get_class($this);
return [
// A list of country codes. If empty, all countries will be available.
'#available_countries' => [],
// The profile entity operated on. Required.
'#default_value' => NULL,
'#process' => [
[
$class,
'attachElementSubmit',
],
[
$class,
'processForm',
],
],
'#element_validate' => [
[
$class,
'validateElementSubmit',
],
],
'#theme_wrappers' => [
'container',
],
];
}