class BcEditor
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\editor\Plugin\EditorBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\editor\Plugin\EditorPluginInterface
- class \Drupal\Tests\editor\Unit\BcEditor extends \Drupal\editor\Plugin\EditorBase
- class \Drupal\editor\Plugin\EditorBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\editor\Plugin\EditorPluginInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
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
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.