quickedit_page_attachments

quickedit_page_attachments(array &$page) Implements hook_page_attachments(). Adds the quickedit library to the page for any user who has the 'access in-place editing' permission. File core/modules/quickedit/quickedit.module, line 44 Provides in-place content editing functionality for fields. Code function quickedit_page_attachments(array &$page) { if (!\Drupal::currentUser()->hasPermission('access in-place editing')) { return; } // In-place editing is only supported on t

quickedit_library_info_alter

quickedit_library_info_alter(&$libraries, $extension) Implements hook_library_info_alter(). Includes additional stylesheets defined by the admin theme to allow it to customize the Quick Edit toolbar appearance. An admin theme can specify CSS files to make the front-end administration experience of in-place editing match the administration experience in the back-end. The CSS files can be specified via the "edit_stylesheets" property in the .info.yml file: quickedit_stylesheets: - css/quick

quickedit_help

quickedit_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/quickedit/quickedit.module, line 21 Provides in-place content editing functionality for fields. Code function quickedit_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.quickedit': $output = '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Quick Edit module allows users with the <a href=":quickedit_pe

quickedit_field_formatter_info_alter

quickedit_field_formatter_info_alter(&$info) Implements hook_field_formatter_info_alter(). Quick Edit extends the @FieldFormatter annotation with the following keys: quickedit: currently only contains one subkey 'editor' which indicates which in-place editor should be used. Possible values are 'form', 'plain_text', 'disabled' or another in-place editor other than the ones Quick Edit module provides. File core/modules/quickedit/quickedit.module, line 107 Provides in-place content editing

quickedit_entity_view_alter

quickedit_entity_view_alter(&$build, EntityInterface $entity, EntityViewDisplayInterface $display) Implements hook_entity_view_alter(). File core/modules/quickedit/quickedit.module, line 155 Provides in-place content editing functionality for fields. Code function quickedit_entity_view_alter(&$build, EntityInterface $entity, EntityViewDisplayInterface $display) { $build['#cache']['contexts'][] = 'user.permissions'; if (!\Drupal::currentUser()->hasPermission('access in-place edi

QuickEditFieldForm::__construct

public QuickEditFieldForm::__construct(PrivateTempStoreFactory $temp_store_factory, ModuleHandlerInterface $module_handler, EntityStorageInterface $node_type_storage, ValidatorInterface $validator) Constructs a new EditFieldForm. Parameters \Drupal\user\PrivateTempStoreFactory $temp_store_factory: The tempstore factory. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler. \Drupal\Core\Entity\EntityStorageInterface $node_type_storage: The node type storage. \Symfon

QuickEditFieldForm::validateForm

public QuickEditFieldForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/quickedit/src/Form/QuickEditFieldForm.php, line 152 Class QuickEditFieldForm Builds and process a form for editing a single entity field. Namespace Drupal\quick

QuickEditFieldForm::submitForm

public QuickEditFieldForm::submitForm(array &$form, FormStateInterface $form_state) Saves the entity with updated values for the edited field. Overrides FormInterface::submitForm File core/modules/quickedit/src/Form/QuickEditFieldForm.php, line 162 Class QuickEditFieldForm Builds and process a form for editing a single entity field. Namespace Drupal\quickedit\Form Code public function submitForm(array &$form, FormStateInterface $form_state) { $entity = $this->buildEntity(

QuickEditFieldForm::simplify

protected QuickEditFieldForm::simplify(array &$form, FormStateInterface $form_state) Simplifies the field edit form for in-place editing. This function: Hides the field label inside the form, because JavaScript displays it outside the form. Adjusts textarea elements to fit their content. Parameters array &$form: A reference to an associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. File core/modules/q

QuickEditFieldForm::init

protected QuickEditFieldForm::init(FormStateInterface $form_state, EntityInterface $entity, $field_name) Initialize the form state and the entity before the first form build. File core/modules/quickedit/src/Form/QuickEditFieldForm.php, line 126 Class QuickEditFieldForm Builds and process a form for editing a single entity field. Namespace Drupal\quickedit\Form Code protected function init(FormStateInterface $form_state, EntityInterface $entity, $field_name) { // @todo Rather than spe