Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MenuLinkInterface.php

function MenuLinkInterface::getOperations

Provides an array of information to build a list of operation links.

Return value

array An associative array of operation link data for this menu link, keyed by operation name, containing the following key-value pairs:

  • title: The localized title of the operation.
  • url: An instance of \Drupal\Core\Url for the operation URL.
  • weight: The weight of this operation.
1 method overrides MenuLinkInterface::getOperations()
MenuLinkBase::getOperations in core/lib/Drupal/Core/Menu/MenuLinkBase.php
Provides an array of information to build a list of operation links.

File

core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 251

Class

MenuLinkInterface
Defines an interface for classes providing a type of menu link.

Namespace

Drupal\Core\Menu

Code

public function getOperations() : array;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal