<?php
-/**
- * @file
- * Contains \Drupal\bootstrap\Plugin\Process\TextFormat.
- */
namespace Drupal\bootstrap\Plugin\Process;
-use Drupal\bootstrap\Annotation\BootstrapProcess;
use Drupal\bootstrap\Bootstrap;
use Drupal\bootstrap\Utility\Element;
use Drupal\Core\Form\FormStateInterface;
* {@inheritdoc}
*/
public static function processElement(Element $element, FormStateInterface $form_state, array &$complete_form) {
+ // Don't add the form-group class to the actual textarea element since
+ // text_format elements are already wrapped.
+ $element->value->setProperty('form_group', FALSE);
+
if (isset($element->format)) {
$element->format->addClass('form-inline');