GeneratedButton.php

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

Namespace

Drupal\Core

File

core/lib/Drupal/Core/GeneratedButton.php

View source
<?php

namespace Drupal\Core;


/**
 * This class holds a <button> generated from the <button> route.
 *
 * Unlike \Drupal\Core\Render\Element\Button, this is not for generating
 * buttons for forms. This class is for putting a button in a list of links
 * such as a multi-level menu.
 */
class GeneratedButton extends GeneratedLink {
    
    /**
     * {@inheritdoc}
     */
    const TAG = 'button';

}

Classes

Title Deprecated Summary
GeneratedButton This class holds a <button> generated from the <button> route.

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