class LocalActionLinkBinding in Drupal 7 to 8/9 Module Upgrader 8
Represents a local action.
Hierarchy
- class \Drupal\drupalmoduleupgrader\Routing\LinkBinding\LinkBinding
- class \Drupal\drupalmoduleupgrader\Routing\LinkBinding\LocalActionLinkBinding
Expanded class hierarchy of LocalActionLinkBinding
File
- src/
Routing/ LinkBinding/ LocalActionLinkBinding.php, line 8
Namespace
Drupal\drupalmoduleupgrader\Routing\LinkBindingView source
class LocalActionLinkBinding extends LinkBinding {
/**
* {@inheritdoc}
*/
public function build() {
$link = parent::build();
$link['appears_on'][] = $this
->getDestination()
->getIdentifier();
return $link;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LinkBinding:: |
protected | property | ||
LinkBinding:: |
protected | property | The link ID. | |
LinkBinding:: |
protected | property | Index of all other links of this type. | |
LinkBinding:: |
protected | property | ||
LinkBinding:: |
public | function | Returns the Drupal 8 route in this binding. | |
LinkBinding:: |
public | function | Returns the link's plugin ID. | |
LinkBinding:: |
public | function | Returns the Drupal 7 route in this binding. | |
LinkBinding:: |
public | function | React when the binding is added to an index. | |
LinkBinding:: |
public | function | Constructs a LinkBinding object. | 1 |
LocalActionLinkBinding:: |
public | function |
Builds the link definition. Overrides LinkBinding:: |