You are here

function hook_maxlength_widget_settings in Maxlength 8

Define additional widget settings.

Return value

array Additional widget settings.

1 function implements hook_maxlength_widget_settings()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

maxlength_custom_widget_test_maxlength_widget_settings in tests/modules/maxlength_custom_widget_test/maxlength_custom_widget_test.module
Implements hook_maxlength_widget_settings().
1 invocation of hook_maxlength_widget_settings()
WidgetSettings::getAllowedSettingsForAll in src/WidgetSettings.php
Returns all the settings which are allowed for all the widgets.

File

./maxlength.api.php, line 19
Hooks provided by the maxlength module.

Code

function hook_maxlength_widget_settings() {
  return [
    'text_textarea_custom_widget' => [
      'maxlength_setting' => TRUE,
      'summary_maxlength_setting' => TRUE,
      'truncate_setting' => TRUE,
    ],
  ];
}