public function TypeSettingsStorage::toArray in Node Accessibility 8
Return current settings as an array.
Return value
array Current settings.
File
- src/
TypeSettingsStorage.php, line 448
Class
- TypeSettingsStorage
- Class TypeSettingsStorage.
Namespace
Drupal\node_accessibilityCode
public function toArray() {
$enabled = $this
->getEnabled();
if (is_null($enabled)) {
$enabled = 'disbled';
}
$method = $this
->getMethod();
if (is_null($method)) {
$method = 'quail_api_method_immediate';
}
return [
'node_type' => $this
->getNodeType(),
'enabled' => $enabled,
'method' => $method,
'format_content' => $this
->getFormatContent(),
'format_results' => $this
->getFormatResults(),
'title_block' => $this
->getTitleBlock(),
'standards' => $this
->getStandards(),
];
}