You are here

public function MenuLinkBase::getFormClass in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getFormClass()

Returns the name of a class that can build an editing form for this link.

To instantiate the form class, use an instance of the \Drupal\Core\DependencyInjection\ClassResolverInterface, such as from the class_resolver service. Then call the setMenuLinkInstance() method on the form instance with the menu link plugin instance.

@todo Add a code example. https://www.drupal.org/node/2302849

Return value

string A class that implements \Drupal\Core\Menu\Form\MenuLinkFormInterface.

Overrides MenuLinkInterface::getFormClass

File

core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 143
Contains \Drupal\Core\Menu\MenuLinkBase.

Class

MenuLinkBase
Defines a base menu link class.

Namespace

Drupal\Core\Menu

Code

public function getFormClass() {
  return $this->pluginDefinition['form_class'];
}