EditorController::filterXss

public EditorController::filterXss(Request $request, FilterFormatInterface $filter_format) Apply the necessary XSS filtering for using a certain text format's editor. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request object. \Drupal\filter\FilterFormatInterface $filter_format: The text format whose text editor (if any) will be used. Return value \Symfony\Component\HttpFoundation\JsonResponse A JSON response containing the XSS-filtered value. Throws \Symfony\C

EditorController

Returns responses for Editor module routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\editor\EditorController File core/modules/editor/src/EditorController.php, line 18 Namespace Drupal\editor Members Name Modifiers Type Description ControllerBase::$configFactory protected property The configura

EditorAccessControlHandler::checkAccess

protected EditorAccessControlHandler::checkAccess(EntityInterface $editor, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for

EditorAccessControlHandler

Defines the access control handler for the text editor entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\editor\EditorAccessControlHandler See also \Drupal\editor\Entity\Editor File core/modules/editor/src/EditorAccessControlHandler.php, line 14 Namespace Drupal\editor Members Name Modifiers Ty

Editor::__construct

public Editor::__construct(array $values, $entity_type) Constructs an Entity object. Parameters array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified. string $entity_type: The type of the entity to create. Overrides ConfigEntityBase::__construct File core/modules/editor/src/Entity/Editor.php, line 83 Class Editor Defines the configured text editor entity. Namespace Drupal\editor\Entity Code public function

Editor::setSettings

public Editor::setSettings(array $settings) Sets the text editor plugin-specific settings. Parameters array $settings: The structured array containing all text editor settings. Return value $this Overrides EditorInterface::setSettings File core/modules/editor/src/Entity/Editor.php, line 166 Class Editor Defines the configured text editor entity. Namespace Drupal\editor\Entity Code public function setSettings(array $settings) { $this->settings = $settings; return $this; }

Editor::setImageUploadSettings

public Editor::setImageUploadSettings(array $image_upload_settings) Sets the image upload settings. Parameters array $image_upload: The structured array containing image upload settings. Return value $this Overrides EditorInterface::setImageUploadSettings File core/modules/editor/src/Entity/Editor.php, line 181 Class Editor Defines the configured text editor entity. Namespace Drupal\editor\Entity Code public function setImageUploadSettings(array $image_upload_settings) { $this->

Editor::setEditor

public Editor::setEditor($editor) Set the text editor plugin ID. Parameters string $editor: The text editor plugin ID to set. Overrides EditorInterface::setEditor File core/modules/editor/src/Entity/Editor.php, line 151 Class Editor Defines the configured text editor entity. Namespace Drupal\editor\Entity Code public function setEditor($editor) { $this->editor = $editor; return $this; }

Editor::label

public Editor::label() Gets the label of the entity. Return value string|null The label of the entity, or NULL if there is no label defined. Overrides Entity::label File core/modules/editor/src/Entity/Editor.php, line 93 Class Editor Defines the configured text editor entity. Namespace Drupal\editor\Entity Code public function label() { return $this->getFilterFormat()->label(); }

Editor::id

public Editor::id() Gets the identifier. Return value string|int|null The entity identifier, or NULL if the object does not yet have an identifier. Overrides Entity::id File core/modules/editor/src/Entity/Editor.php, line 76 Class Editor Defines the configured text editor entity. Namespace Drupal\editor\Entity Code public function id() { return $this->format; }