public function BaseSettings::getInfo in Charts 8.4
Same name and namespace in other branches
- 5.0.x src/Element/BaseSettings.php \Drupal\charts\Element\BaseSettings::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/ BaseSettings.php, line 41
Class
- BaseSettings
- Provides a form element for setting a chart.
Namespace
Drupal\charts\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#tree' => TRUE,
'#default_value' => [],
'#used_in' => 'basic_form',
'#series' => FALSE,
'#required' => FALSE,
'#field_options' => [],
'#library' => '',
'#process' => [
[
$class,
'attachLibraryElementSubmit',
],
[
$class,
'processSettings',
],
[
$class,
'processGroup',
],
],
'#element_validate' => [
[
$class,
'validateLibraryPluginConfiguration',
],
],
'#charts_library_settings_element_submit' => [
[
$class,
'submitLibraryPluginConfiguration',
],
],
'#theme_wrappers' => [
'container',
],
];
}