class BcEditor

Hierarchy

Expanded class hierarchy of BcEditor

File

core/modules/editor/tests/src/Unit/EditorBaseTest.php, line 106

Namespace

Drupal\Tests\editor\Unit
View 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 Overriden Title Overrides
BcEditor::getJSSettings public function Returns JavaScript settings to be attached. Overrides EditorPluginInterface::getJSSettings
BcEditor::getLibraries public function Returns libraries to be attached. Overrides EditorPluginInterface::getLibraries
BcEditor::settingsForm public function
BcEditor::settingsFormSubmit public function
BcEditor::settingsFormValidate public function
EditorBase::buildConfigurationForm public function Form constructor. Overrides PluginFormInterface::buildConfigurationForm 3
EditorBase::getDefaultSettings public function Returns the default settings for this configurable text editor. Overrides EditorPluginInterface::getDefaultSettings 3
EditorBase::submitConfigurationForm public function Form submission handler. Overrides PluginFormInterface::submitConfigurationForm 1
EditorBase::validateConfigurationForm public function Form validation handler. Overrides PluginFormInterface::validateConfigurationForm 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 6
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.