Operations.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/Render/Element/Operations.php
  2. 8.9.x core/lib/Drupal/Core/Render/Element/Operations.php
  3. 10 core/lib/Drupal/Core/Render/Element/Operations.php

Namespace

Drupal\Core\Render\Element

File

core/lib/Drupal/Core/Render/Element/Operations.php

View source
<?php

namespace Drupal\Core\Render\Element;

use Drupal\Core\Render\Attribute\RenderElement;

/**
 * Provides a render element for a set of operations links.
 *
 * This is a special case of \Drupal\Core\Render\Element\Dropbutton; the only
 * difference is that it offers themes the possibility to render it differently
 * through a theme suggestion.
 *
 * @see \Drupal|Core\Render\Element\DropButton
 */
class Operations extends Dropbutton {
    
    /**
     * {@inheritdoc}
     */
    public function getInfo() {
        return [
            '#theme' => 'links__dropbutton__operations',
        ] + parent::getInfo();
    }

}

Classes

Title Deprecated Summary
Operations Provides a render element for a set of operations links.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.