Mercurial > hg > isophonics-drupal-site
view core/modules/quickedit/src/EditorSelectorInterface.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\quickedit; use Drupal\Core\Field\FieldItemListInterface; /** * Interface for selecting an in-place editor (an Editor plugin) for a field. */ interface EditorSelectorInterface { /** * Returns the in-place editor (an InPlaceEditor plugin) to use for a field. * * @param string $formatter_type * The field's formatter type name. * @param \Drupal\Core\Field\FieldItemListInterface $items * The field values to be in-place edited. * * @return string|null * The editor to use, or NULL to not enable in-place editing. */ public function getEditor($formatter_type, FieldItemListInterface $items); /** * Returns the attachments for all editors. * * @param array $editor_ids * A list of all in-place editor IDs that should be attached. * * @return array * An array of attachments, for use with #attached. * * @see \Drupal\Core\Render\AttachmentsResponseProcessorInterface::processAttachments() */ public function getEditorAttachments(array $editor_ids); }