Error message

  • Notice: Undefined property: stdClass::$preferred in _api_make_match_link() (line 1075 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).
  • Notice: Undefined property: stdClass::$preferred in _api_make_match_link() (line 1079 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).
  • Notice: Undefined property: stdClass::$preferred in _api_make_match_link() (line 1075 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).
  • Notice: Undefined property: stdClass::$preferred in _api_make_match_link() (line 1079 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).

class ParagraphOperations

Plugin annotation

@RenderElement("paragraph_operations");

Hierarchy

  • class \Drupal\paragraphs\Element\ParagraphOperations extends \Drupal\Core\Render\Element\Operations

Expanded class hierarchy of ParagraphOperations

1 #type use of ParagraphOperations
ParagraphsWidget::buildDropbutton in paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Build drop button.

File

paragraphs/src/Element/ParagraphOperations.php, line 13

Namespace

Drupal\paragraphs\Element
View source
class ParagraphOperations extends Operations {

  /**
   * {@inheritdoc}
   */
  public function getInfo() {
    return [
      '#theme' => 'links__dropbutton__operations__paragraphs',
    ] + parent::getInfo();
  }

  /**
   * {@inheritdoc}
   */
  public static function preRenderDropbutton($element) {
    $element = parent::preRenderDropbutton($element);

    // Attach #ajax events if title is a render array.
    foreach ($element['#links'] as &$link) {
      if (isset($link['title']['#ajax'])) {
        $link['title'] = RenderElement::preRenderAjaxForm($link['title']);
      }
    }
    return $element;
  }

}

Members