class BcEditor
Hierarchy
- class \Drupal\Tests\editor\Unit\BcEditor
Expanded class hierarchy of BcEditor
File
-
core/
modules/ editor/ tests/ src/ Unit/ EditorBaseTest.php, line 106
Namespace
Drupal\Tests\editor\UnitView source
class BcEditor extends EditorBase {
public function settingsForm(array $form, FormStateInterface $form_state, Editor $editor) {
return [
'foo' => 'bar',
];
}
public function settingsFormValidate(array $form, FormStateInterface $form_state) {
$form_state->setValue([
'nested',
'foo',
], 'bar');
}
public function settingsFormSubmit(array $form, FormStateInterface $form_state) {
$form_state->setValue([
'nested',
'bar',
], 'baz');
}
public function getJSSettings(Editor $editor) {
return [];
}
public function getLibraries(Editor $editor) {
return [];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
BcEditor::getJSSettings | public | function | Returns JavaScript settings to be attached. |
BcEditor::getLibraries | public | function | Returns libraries to be attached. |
BcEditor::settingsForm | public | function | |
BcEditor::settingsFormSubmit | public | function | |
BcEditor::settingsFormValidate | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.